Commit 6910ab30 authored by Steve French's avatar Steve French

[CIFS] Fix unlink oops when indirectly called in rename error path

under heavy stress.
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent d62e54ab
...@@ -569,7 +569,10 @@ int cifs_unlink(struct inode *inode, struct dentry *direntry) ...@@ -569,7 +569,10 @@ int cifs_unlink(struct inode *inode, struct dentry *direntry)
xid = GetXid(); xid = GetXid();
if(inode)
cifs_sb = CIFS_SB(inode->i_sb); cifs_sb = CIFS_SB(inode->i_sb);
else
cifs_sb = CIFS_SB(dentry->d_sb);
pTcon = cifs_sb->tcon; pTcon = cifs_sb->tcon;
/* Unlink can be called from rename so we can not grab the sem here /* Unlink can be called from rename so we can not grab the sem here
......
Markdown is supported
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