diff options
author | David Howells <dhowells@redhat.com> | 2025-04-02 20:27:26 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-06-26 11:13:16 -0500 |
commit | 263debecb4aa7cec0a86487e6f409814f6194a21 (patch) | |
tree | 5335c6285e11d826d65ab0a98212bfa4526e0464 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 43e7e284fc77b710d899569360ea46fa3374ae22 (diff) |
cifs: Fix reading into an ITER_FOLIOQ from the smbdirect code
When performing a file read from RDMA, smbd_recv() prints an "Invalid msg
type 4" error and fails the I/O. This is due to the switch-statement there
not handling the ITER_FOLIOQ handed down from netfslib.
Fix this by collapsing smbd_recv_buf() and smbd_recv_page() into
smbd_recv() and just using copy_to_iter() instead of memcpy(). This
future-proofs the function too, in case more ITER_* types are added.
Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Reported-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Tom Talpey <tom@talpey.com>
cc: Paulo Alcantara (Red Hat) <pc@manguebit.com>
cc: Matthew Wilcox <willy@infradead.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions