diff options
author | Arnd Hannemann <arnd@arndnet.de> | 2015-11-16 11:38:28 -0500 |
---|---|---|
committer | Steve French <sfrench@localhost.localdomain> | 2016-01-14 14:39:07 -0500 |
commit | 275516cdcfa42c603c79ea42d2a7d4288d950fea (patch) | |
tree | c98d52e546d998050eeae7e73e6698c44fb73a9f /fs | |
parent | ec7147a99e33a9e4abad6fc6e1b40d15df045d53 (diff) |
Print IP address of unresponsive server
Before this patch, only the hostname of the server
is printed when it becomes unresponsive.
This might not be helpful, if the IP-Address has
changed since initial mount when the name was
resolved (e.g. because the IPv6-Prefix changed).
This patch adds the cached IP address of the unresponsive server,
to the log message.
Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
Signed-off-by: Steve French <sfrench@localhost.localdomain>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/connect.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index ecb0803bdb0e..103054af9713 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -488,8 +488,11 @@ server_unresponsive(struct TCP_Server_Info *server) | |||
488 | */ | 488 | */ |
489 | if (server->tcpStatus == CifsGood && | 489 | if (server->tcpStatus == CifsGood && |
490 | time_after(jiffies, server->lstrp + 2 * SMB_ECHO_INTERVAL)) { | 490 | time_after(jiffies, server->lstrp + 2 * SMB_ECHO_INTERVAL)) { |
491 | cifs_dbg(VFS, "Server %s has not responded in %d seconds. Reconnecting...\n", | 491 | cifs_dbg(VFS, "Server %s (addr=%pISc) has not responded in " |
492 | server->hostname, (2 * SMB_ECHO_INTERVAL) / HZ); | 492 | "%d seconds. Reconnecting...\n", |
493 | server->hostname, | ||
494 | (struct sockaddr *)&server->dstaddr, | ||
495 | (2 * SMB_ECHO_INTERVAL) / HZ); | ||
493 | cifs_reconnect(server); | 496 | cifs_reconnect(server); |
494 | wake_up(&server->response_q); | 497 | wake_up(&server->response_q); |
495 | return true; | 498 | return true; |