CIFS: SMBD: Add parameter rdata to smb2_new_read_req
authorLong Li <longli@microsoft.com>
Tue, 7 Nov 2017 08:54:53 +0000 (01:54 -0700)
committerSteve French <smfrench@gmail.com>
Thu, 25 Jan 2018 01:49:05 +0000 (19:49 -0600)
commit2dabfd5baba641588b82ba499ef81c9a378bbb23
tree3e514328e1c23b366edb8a54df832812f10fd861
parent3cecf4865cd3ea31272750edf38e73c59ff7540c
CIFS: SMBD: Add parameter rdata to smb2_new_read_req

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

When we assemble the SMB read packet header, we need to know the I/O layout
if this request is to use a RDMA write. rdata has all the information we need
for memory registration. Add rdata to smb2_new_read_req.

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