]> Gentwo Git Trees - linux/.git/commit
smb: client: call ib_dma_unmap_sg if mr->sgt.nents is not 0
authorStefan Metzmacher <metze@samba.org>
Sun, 12 Oct 2025 19:10:28 +0000 (21:10 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 13 Oct 2025 13:26:22 +0000 (08:26 -0500)
commitb9c0becc2fceb53e4a958575344e92c0e4f812bb
tree058611c6d71ef6678799523e979ee62f3a26ca47
parent56c817e31acedc8a9041b181a15755e5a7b55f2b
smb: client: call ib_dma_unmap_sg if mr->sgt.nents is not 0

This seems to be the more reliable way to check if we need to
call ib_dma_unmap_sg().

Fixes: c7398583340a ("CIFS: SMBD: Implement RDMA memory registration")
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/client/smbdirect.c