cifs: add missing initialization of server->req_lock
Subsystems (2)
PATCH 1/1 cifs: add missing initialization of server->req_lock
Cc Pavel Shilovsky <[email protected]>
Signed-off-by Jeff Layton <[email protected]>
--- fs/cifs/connect.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
fs/cifs/connect.c +1 -0
@@ -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);
Signature · 1 line
1.7.7.6
A message that is not in the archive (sent off-list or not yet received): 1335908324-16593-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Pavel Shilovsky
Reviewed-by2012/5/2 Jeff Layton <[email protected]>:
Quoted 19 lines
Cc Pavel Shilovsky <[email protected]>Signed-off-by Jeff Layton <[email protected]>---
fs/cifs/connect.c | 1 +1 files changed, 1 insertions(+), 0 deletions(-)fs/cifs/connect.c +1
-1@@ -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); --
Quoted 2 lines
1.7.7.6
That's my fault. Thanks for fixing this!
Reviewed-by Pavel Shilovsky <[email protected]>
Signature · 2 lines
Best regards, Pavel Shilovsky.