diff options
author | Stefan Metzmacher <metze@samba.org> | 2025-08-06 19:35:52 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-08-06 15:18:58 -0500 |
commit | 5ef8278e3734a8817fb0b8d302572dc2f2f5c46c (patch) | |
tree | 75874a20413bf7db2745587542784d7c14a3f055 | |
parent | 977ea06fddda493a8e16e609a408fdd08233793d (diff) |
smb: smbdirect: add smbdirect_socket.{send,recv}_io.mem.{cache,pool}
This will be the common location memory caches and pools.
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>
-rw-r--r-- | fs/smb/common/smbdirect/smbdirect_socket.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/fs/smb/common/smbdirect/smbdirect_socket.h b/fs/smb/common/smbdirect/smbdirect_socket.h index 4660c05c358f7..3c4a8d627aa3f 100644 --- a/fs/smb/common/smbdirect/smbdirect_socket.h +++ b/fs/smb/common/smbdirect/smbdirect_socket.h @@ -40,6 +40,20 @@ struct smbdirect_socket { struct smbdirect_socket_parameters parameters; /* + * The state for posted send buffers + */ + struct { + /* + * Memory pools for preallocating + * smbdirect_send_io buffers + */ + struct { + struct kmem_cache *cache; + mempool_t *pool; + } mem; + } send_io; + + /* * The state for posted receive buffers */ struct { @@ -53,6 +67,15 @@ struct smbdirect_socket { } expected; /* + * Memory pools for preallocating + * smbdirect_recv_io buffers + */ + struct { + struct kmem_cache *cache; + mempool_t *pool; + } mem; + + /* * The list of free smbdirect_recv_io * structures */ |