OSDN Git Service

cifs: Always resolve hostname before reconnecting
authorPaulo Alcantara <paulo@paulo.ac>
Tue, 20 Nov 2018 17:16:36 +0000 (15:16 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Feb 2019 18:43:07 +0000 (19:43 +0100)
commit8f51e79ceeb40daddeac931b2c542574f6eae231
treef111a7886643c1a31004457d99da0e626bcccd40
parentc3ef8a44e758f9596f09c684c617eb197e8f0df8
cifs: Always resolve hostname before reconnecting

commit 28eb24ff75c5ac130eb326b3b4d0dcecfc0f427d upstream.

In case a hostname resolves to a different IP address (e.g. long
running mounts), make sure to resolve it every time prior to calling
generic_ip_connect() in reconnect.

Suggested-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/connect.c