cifs: smbd: take an array of reqeusts when sending upper layer data
authorLong Li <longli@microsoft.com>
Mon, 15 Apr 2019 21:49:17 +0000 (14:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:13 +0000 (08:22 +0200)
commit96b44c20e6f0694b41c690da4ecfe9a1297879d2
treed66737797875919e7f5cc4f98d0039ef523e2f72
parent3f27a14b03d8bd8eb589b9eaa0046c7840cff813
cifs: smbd: take an array of reqeusts when sending upper layer data

[ Upstream commit 4739f2328661d070f93f9bcc8afb2a82706c826d ]

To support compounding, __smb_send_rqst() now sends an array of requests to
the transport layer.
Change smbd_send() to take an array of requests, and send them in as few
packets as possible.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smbdirect.c
fs/cifs/smbdirect.h
fs/cifs/transport.c