]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
CIFS: SMBD: Read correct returned data length for RDMA write (SMB read) I/O
authorLong Li <longli@microsoft.com>
Thu, 23 Nov 2017 00:38:46 +0000 (17:38 -0700)
committerSteve French <smfrench@gmail.com>
Thu, 25 Jan 2018 01:49:07 +0000 (19:49 -0600)
commit74dcf418fe344657b0e48a5a4b75f935443fa53f
treebafd7da343c4a3231c22e36a404168ec33332588
parentdb223a590d45b5e584a430c46a778699a5825cdd
CIFS: SMBD: Read correct returned data length for RDMA write (SMB read) I/O

This patch is for preparing upper layer doing SMB read via RDMA write.

When RDMA write is used for SMB read, the returned data length is in
DataRemaining in the response packet. Reading it properly by adding a
parameter to specifiy where the returned data length is.

Add the defition for memory registration to wdata and return the correct
length based on if RDMA write is used.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/smb1ops.c
fs/cifs/smb2ops.c