cifs: add missing initialization of server->req_lock
authorJeff Layton <jlayton@redhat.com>
Tue, 1 May 2012 21:41:16 +0000 (17:41 -0400)
committerSteve French <sfrench@us.ibm.com>
Wed, 2 May 2012 03:29:51 +0000 (22:29 -0500)
Cc: Pavel Shilovsky <piastryyy@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c

index 6ce888b..a75902b 100644 (file)
@@ -2183,6 +2183,7 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
        tcp_ses->session_estab = false;
        tcp_ses->sequence_number = 0;
        tcp_ses->lstrp = jiffies;
+       spin_lock_init(&tcp_ses->req_lock);
        INIT_LIST_HEAD(&tcp_ses->tcp_ses_list);
        INIT_LIST_HEAD(&tcp_ses->smb_ses_list);
        INIT_DELAYED_WORK(&tcp_ses->echo, cifs_echo_request);