Skip to content
Commit 3321b791 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French
Browse files

cifs: fix locking and list handling code in cifs_open and its helper



The patch to remove cifs_init_private introduced a locking imbalance. It
didn't remove the leftover list addition code and the unlocking in that
function. cifs_new_fileinfo does the list addition now, so there should
be no need to do it outside of that function.

pCifsInode will never be NULL, so we don't need to check for that. This
patch also gets rid of the ugly locking and unlocking across function
calls.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Acked-by: default avatarSteve French <sfrench@us.ibm.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 15dd4781
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment