[PATCH v4 064/145] smb: client: let allocate_receive_buffers() initialize complex_work as disabled
Stefan Metzmacher
metze at samba.org
Tue Nov 25 17:55:10 UTC 2025
smbdirect_recv_io.complex_work won't be used in client until
the end of the move to common functions, but common cleanup
code will call disable_work[_sync]() before that, so we
better initialize it now.
Cc: Steve French <smfrench at gmail.com>
Cc: Tom Talpey <tom at talpey.com>
Cc: Long Li <longli at microsoft.com>
Cc: Namjae Jeon <linkinjeon at kernel.org>
Cc: linux-cifs at vger.kernel.org
Cc: samba-technical at lists.samba.org
Signed-off-by: Stefan Metzmacher <metze at samba.org>
---
fs/smb/client/smbdirect.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c
index 4dae3d1eb93e..33f3cbc0bbd9 100644
--- a/fs/smb/client/smbdirect.c
+++ b/fs/smb/client/smbdirect.c
@@ -1543,6 +1543,8 @@ static int allocate_receive_buffers(struct smbdirect_socket *sc, int num_buf)
response->socket = sc;
response->sge.length = 0;
+ INIT_WORK(&response->complex_work, __smbdirect_socket_disabled_work);
+ disable_work_sync(&response->complex_work);
list_add_tail(&response->list, &sc->recv_io.free.list);
}
--
2.43.0
More information about the samba-technical
mailing list