]> git.baikalelectronics.ru Git - 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)
commitff42de0886664704ecb7392078f0da2ccb0b4b3d
treebafd7da343c4a3231c22e36a404168ec33332588
parent47964912c03cc7de59dc4793083137d0a4892951
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