cifs: drop spinlock before calling cifs_put_tlink
authorJeff Layton <jlayton@redhat.com>
Mon, 11 Jul 2011 14:16:34 +0000 (10:16 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 11 Jul 2011 18:40:52 +0000 (18:40 +0000)
...as that function can sleep.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c

index 6ec366ff28b3fb8931587c1c85d72e4b1444e7ff..dbd669cc5bc7623ea93fafcff8d0448d55a92653 100644 (file)
@@ -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;
 }