]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: smbdirect: introduce smbdirect_socket.recv_io.free.{list,lock}
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Aug 2025 16:11:34 +0000 (18:11 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Aug 2025 20:04:13 +0000 (15:04 -0500)
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>
fs/smb/common/smbdirect/smbdirect_socket.h

index a7ad31c471a7b696e26ae332573d318f59fabcda..21a58e6078cb2f9ff92c325d29271b3f64413218 100644 (file)
@@ -51,6 +51,15 @@ struct smbdirect_socket {
                        SMBDIRECT_EXPECT_NEGOTIATE_REP = 2,
                        SMBDIRECT_EXPECT_DATA_TRANSFER = 3,
                } expected;
+
+               /*
+                * The list of free smbdirect_recv_io
+                * structures
+                */
+               struct {
+                       struct list_head list;
+                       spinlock_t lock;
+               } free;
        } recv_io;
 };