mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 04:50:05 +02:00
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>
This commit is contained in:
parent
6889d2f5ca
commit
6c5b0f9253
|
|
@ -51,6 +51,14 @@ struct smbdirect_socket {
|
|||
enum smbdirect_socket_status status;
|
||||
wait_queue_head_t status_wait;
|
||||
|
||||
/*
|
||||
* This points to the workqueue to
|
||||
* be used for this socket.
|
||||
* It can be per socket (on the client)
|
||||
* or point to a global workqueue (on the server)
|
||||
*/
|
||||
struct workqueue_struct *workqueue;
|
||||
|
||||
struct work_struct disconnect_work;
|
||||
|
||||
/* RDMA related */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user