smb3: add debug for unexpected mid cancellation
authorSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:04:57 +0000 (21:04 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 12:22:02 +0000 (07:22 -0500)
We have hit this intermittently, increase the verbosity of
warning message on unexpected mid cancellation.

Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/transport.c

index fd80749c7838f222b51ac43318a7c0bb9252c7b1..f8112433f0c8b3fa90911bc8451b631a5b9b1ef8 100644 (file)
@@ -876,8 +876,8 @@ compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
        for (i = 0; i < num_rqst; i++) {
                rc = wait_for_response(ses->server, midQ[i]);
                if (rc != 0) {
-                       cifs_dbg(FYI, "Cancelling wait for mid %llu\n",
-                                midQ[i]->mid);
+                       cifs_dbg(VFS, "Cancelling wait for mid %llu cmd: %d\n",
+                                midQ[i]->mid, le16_to_cpu(midQ[i]->command));
                        send_cancel(ses->server, &rqst[i], midQ[i]);
                        spin_lock(&GlobalMid_Lock);
                        if (midQ[i]->mid_state == MID_REQUEST_SUBMITTED) {