]> www.infradead.org Git - users/hch/xfs.git/commit
smb/client: fix rdma usage in smb2_async_writev()
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Aug 2024 14:31:39 +0000 (16:31 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 25 Aug 2024 14:06:25 +0000 (09:06 -0500)
commit017d1701743657fbfaea74397727a9d2b81846b7
treecd8e274d0e0fa6221950086635ea98c7587272e9
parentb608e2c318789aeba49055747166e13bee57df4a
smb/client: fix rdma usage in smb2_async_writev()

rqst.rq_iter needs to be truncated otherwise we'll
also send the bytes into the stream socket...

This is the logic behind rqst.rq_npages = 0, which was removed in
"cifs: Change the I/O paths to use an iterator rather than a page list"
(d08089f649a0cfb2099c8551ac47eef0cc23fdf2).

Cc: stable@vger.kernel.org
Fixes: d08089f649a0 ("cifs: Change the I/O paths to use an iterator rather than a page list")
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2pdu.c