Skip to content

Commit d0df32a

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce smbdirect_socket.recv_io.free.{list,lock}
This will allow the list of free smbdirect_recv_io messages including the spinlock to be in common between client and server in order to split out common helper functions in future. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: 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 5dddf04 commit d0df32a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ struct smbdirect_socket {
5151
SMBDIRECT_EXPECT_NEGOTIATE_REP = 2,
5252
SMBDIRECT_EXPECT_DATA_TRANSFER = 3,
5353
} expected;
54+
55+
/*
56+
* The list of free smbdirect_recv_io
57+
* structures
58+
*/
59+
struct {
60+
struct list_head list;
61+
spinlock_t lock;
62+
} free;
5463
} recv_io;
5564
};
5665

0 commit comments

Comments
 (0)