Skip to content

Commit 6c5b0f9

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce smbdirect_socket.workqueue
The client currently used a per socket workqueue because it can block in a work function waiting for credits. So we use a per socket pointer in order to prepare common code. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 6889d2f commit 6c5b0f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ struct smbdirect_socket {
5151
enum smbdirect_socket_status status;
5252
wait_queue_head_t status_wait;
5353

54+
/*
55+
* This points to the workqueue to
56+
* be used for this socket.
57+
* It can be per socket (on the client)
58+
* or point to a global workqueue (on the server)
59+
*/
60+
struct workqueue_struct *workqueue;
61+
5462
struct work_struct disconnect_work;
5563

5664
/* RDMA related */

0 commit comments

Comments
 (0)