Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[linux-2.6-microblaze.git] / fs / cifs / transport.c
index f65f9a6..75a95de 100644 (file)
@@ -431,7 +431,9 @@ unmask:
                 * be taken as the remainder of this one. We need to kill the
                 * socket so the server throws away the partial SMB
                 */
+               spin_lock(&GlobalMid_Lock);
                server->tcpStatus = CifsNeedReconnect;
+               spin_unlock(&GlobalMid_Lock);
                trace_smb3_partial_send_reconnect(server->CurrentMid,
                                                  server->conn_id, server->hostname);
        }