]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix potential race with cifsd thread
authorPaulo Alcantara <pc@cjr.nz>
Thu, 31 Mar 2022 18:01:50 +0000 (15:01 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 4 Apr 2022 17:01:22 +0000 (12:01 -0500)
commitfba40d340097b262603db8b73d1838982ea1bf1e
tree90d74ec9f57dec31f6630ee72bedb8e04a9d7e04
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
cifs: fix potential race with cifsd thread

To avoid racing with demultiplex thread while it is handling data on
socket, use cifs_signal_cifsd_for_reconnect() helper for marking
current server to reconnect and let the demultiplex thread handle the
rest.

Fixes: efc278d53919 ("cifs: use a different reconnect helper for non-cifsd threads")
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/netmisc.c