From: Jeff Layton Date: Mon, 11 Jul 2011 14:16:34 +0000 (-0400) Subject: cifs: drop spinlock before calling cifs_put_tlink X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f484b5d001a972a42129570e98086a2a6d216ce0;p=openwrt%2Fstaging%2Fblogic.git cifs: drop spinlock before calling cifs_put_tlink ...as that function can sleep. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- 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; }