Skip to content

Commit

Permalink
cifs: drop spinlock before calling cifs_put_tlink
Browse files Browse the repository at this point in the history
...as that function can sleep.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Jeff Layton authored and Steve French committed Jul 11, 2011
1 parent b9bce2e commit f484b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f484b5d

Please sign in to comment.