diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2023-10-13 11:43:09 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-11-09 10:25:32 -0600 |
commit | 19a4b9d6c372cab6a3b2c9a061a236136fe95274 (patch) | |
tree | 26cd88d594bf7b33c64e58b7efd5837614cf0c65 /fs/proc_namespace.c | |
parent | 9599d59eb8fc0c0fd9480c4f22901533d08965ee (diff) |
cifs: reconnect work should have reference on server struct
The delayed work for reconnect takes server struct
as a parameter. But it does so without holding a ref
to it. Normally, this may not show a problem as
the reconnect work is only cancelled on umount.
However, since we now plan to support scaling down of
channels, and the scale down can happen from reconnect
work itself, we need to fix it.
This change takes a reference on the server struct
before it is passed to the delayed work. And drops
the reference in the delayed work itself. Or if
the delayed work is successfully cancelled, by the
process that cancels it.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/proc_namespace.c')
0 files changed, 0 insertions, 0 deletions