Files
linux/fs
Shyam Prasad N e0b21b642d cifs: make sure that channel scaling is done only once
[ Upstream commit ee36a3b345 ]

Following a successful cifs_tree_connect, we have the code
to scale up/down the number of channels in the session.
However, it is not protected by a lock today.

As a result, this code can be executed by several processes
that select the same channel. The core functions handle this
well, as they pick chan_lock. However, we've seen cases where
smb2_reconnect throws some warnings.

To fix that, this change introduces a flags bitmap inside the
cifs_ses structure. A new flag type is used to ensure that
only one process enters this section at any time.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:41:38 +01:00
..
2023-11-03 22:24:11 +09:00
2024-02-05 20:17:04 +00:00
2023-08-31 12:07:34 -05:00
2023-12-13 11:14:09 -05:00
2024-02-23 09:51:53 +01:00
2023-05-17 09:16:59 +02:00
2023-08-21 13:46:25 -07:00
2023-10-19 11:02:47 +02:00
2023-08-19 12:12:12 +02:00
2023-10-22 17:08:07 -04:00
2024-02-16 19:14:30 +01:00
2023-05-19 04:30:22 +02:00
2023-05-19 04:30:22 +02:00
2023-08-15 08:32:45 +02:00