summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-07-11 10:16:34 -0400
committerSteve French <sfrench@us.ibm.com>2011-07-11 18:40:52 +0000
commitf484b5d001a972a42129570e98086a2a6d216ce0 (patch)
tree1345cdda657b020acc0ca5da7645119d6740cbb3 /fs/cifs
parentb9bce2e9f9936cfd12fbc62ead11edcdd46dec7e (diff)
downloadlinux-stable-f484b5d001a972a42129570e98086a2a6d216ce0.tar.gz
linux-stable-f484b5d001a972a42129570e98086a2a6d216ce0.tar.bz2
linux-stable-f484b5d001a972a42129570e98086a2a6d216ce0.zip
cifs: drop spinlock before calling cifs_put_tlink
...as that function can sleep. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 6ec366ff28b3..dbd669cc5bc7 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2242,8 +2242,8 @@ cifs_match_super(struct super_block *sb, void *data)
rc = compare_mount_options(sb, mnt_data);
out:
- cifs_put_tlink(tlink);
spin_unlock(&cifs_tcp_ses_lock);
+ cifs_put_tlink(tlink);
return rc;
}