summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smbdirect.c
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2019-10-16 22:51:53 +0200
committerSteve French <stfrench@microsoft.com>2019-11-25 08:14:15 +0100
commitd63cdbae60ac6fbb2864bd3d8df7404f12b7407d (patch)
tree4d130fc31c04005388834a343918fafb32b01ada /fs/cifs/smbdirect.c
parentcifs: smbd: Return -EINVAL when the number of iovs exceeds SMBDIRECT_MAX_SGE (diff)
downloadlinux-d63cdbae60ac6fbb2864bd3d8df7404f12b7407d.tar.xz
linux-d63cdbae60ac6fbb2864bd3d8df7404f12b7407d.zip
cifs: smbd: Add messages on RDMA session destroy and reconnection
Log these activities to help production support. Signed-off-by: Long Li <longli@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smbdirect.c')
-rw-r--r--fs/cifs/smbdirect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 64c5b872220d..5462cf752432 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -1476,6 +1476,7 @@ void smbd_destroy(struct TCP_Server_Info *server)
info->transport_status = SMBD_DESTROYED;
destroy_workqueue(info->workqueue);
+ log_rdma_event(INFO, "rdma session destroyed\n");
kfree(info);
}
@@ -1505,8 +1506,9 @@ create_conn:
log_rdma_event(INFO, "creating rdma session\n");
server->smbd_conn = smbd_get_connection(
server, (struct sockaddr *) &server->dstaddr);
- log_rdma_event(INFO, "created rdma session info=%p\n",
- server->smbd_conn);
+
+ if (server->smbd_conn)
+ cifs_dbg(VFS, "RDMA transport re-established\n");
return server->smbd_conn ? 0 : -ENOENT;
}