diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-03-01 01:01:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-06 13:12:22 +0300 |
commit | 06d17e1ba929ac023771d981a271c182e7ae567b (patch) | |
tree | d1dd537bd3b1dd8a22253547daf3fd398a059732 /io_uring/nop.h | |
parent | 901887a7794df5bf7580c3fb518b72ac45c782d7 (diff) | |
download | linux-06d17e1ba929ac023771d981a271c182e7ae567b.tar.xz |
cifs: prevent data race in cifs_reconnect_tcon()
[ Upstream commit 1bcd548d935a33c6fc58331405eb1b82fd6150de ]
Make sure to get an up-to-date TCP_Server_Info::nr_targets value prior
to waiting the server to be reconnected in cifs_reconnect_tcon(). It
is set in cifs_tcp_ses_needs_reconnect() and protected by
TCP_Server_Info::srv_lock.
Create a new cifs_wait_for_server_reconnect() helper that can be used
by both SMB2+ and CIFS reconnect code.
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: bc962159e8e3 ("cifs: avoid race conditions with parallel reconnects")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring/nop.h')
0 files changed, 0 insertions, 0 deletions