Skip to content

Commit 5ef8278

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: add smbdirect_socket.{send,recv}_io.mem.{cache,pool}
This will be the common location memory caches and pools. 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 977ea06 commit 5ef8278

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ struct smbdirect_socket {
3939

4040
struct smbdirect_socket_parameters parameters;
4141

42+
/*
43+
* The state for posted send buffers
44+
*/
45+
struct {
46+
/*
47+
* Memory pools for preallocating
48+
* smbdirect_send_io buffers
49+
*/
50+
struct {
51+
struct kmem_cache *cache;
52+
mempool_t *pool;
53+
} mem;
54+
} send_io;
55+
4256
/*
4357
* The state for posted receive buffers
4458
*/
@@ -52,6 +66,15 @@ struct smbdirect_socket {
5266
SMBDIRECT_EXPECT_DATA_TRANSFER = 3,
5367
} expected;
5468

69+
/*
70+
* Memory pools for preallocating
71+
* smbdirect_recv_io buffers
72+
*/
73+
struct {
74+
struct kmem_cache *cache;
75+
mempool_t *pool;
76+
} mem;
77+
5578
/*
5679
* The list of free smbdirect_recv_io
5780
* structures

0 commit comments

Comments
 (0)