Skip to content

Commit 0226487

Browse files
committed
cifs: move debug print out of spinlock
It is better to print debug messages outside of the chan_lock spinlock where possible. Reviewed-by: Shyam Prasad N <[email protected]> Addresses-Coverity: 1493854 ("Thread deadlock") Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent fa55b7d commit 0226487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/sess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ int cifs_try_adding_channels(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses)
9595
}
9696

9797
if (!(ses->server->capabilities & SMB2_GLOBAL_CAP_MULTI_CHANNEL)) {
98-
cifs_dbg(VFS, "server %s does not support multichannel\n", ses->server->hostname);
9998
ses->chan_max = 1;
10099
spin_unlock(&ses->chan_lock);
100+
cifs_dbg(VFS, "server %s does not support multichannel\n", ses->server->hostname);
101101
return 0;
102102
}
103103
spin_unlock(&ses->chan_lock);

0 commit comments

Comments
 (0)