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: dca65818 ("cifs: use a different reconnect helper for non-cifsd threads") Reviewed-by: NEnzo Matsumiya <ematsumiya@suse.de> Reviewed-by: NShyam Prasad N <sprasad@microsoft.com> Signed-off-by: NPaulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: NSteve French <stfrench@microsoft.com>
Showing
想要评论请 注册 或 登录