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 <[email protected]> Cc: Tom Talpey <[email protected]> Cc: Long Li <[email protected]> Cc: Namjae Jeon <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Stefan Metzmacher <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 5dddf04 commit d0df32a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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)