cifs: Add a function to build an RDMA SGE list from an iterator
authorDavid Howells <dhowells@redhat.com>
Thu, 27 Oct 2022 16:36:11 +0000 (17:36 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Feb 2023 23:25:44 +0000 (17:25 -0600)
commite5fbdde430171175f32094c8059eea0d0e2487ae
treec424563c1f86f228e54ad3c0be8521eda4f7e3f3
parent0185846975339a5c348373aa450a977f5242366b
cifs: Add a function to build an RDMA SGE list from an iterator

Add a function to add elements onto an RDMA SGE list representing page
fragments extracted from a BVEC-, KVEC- or XARRAY-type iterator and DMA
mapped until the maximum number of elements is reached.

Nothing is done to make sure the pages remain present - that must be done
by the caller.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Tom Talpey <tom@talpey.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
cc: linux-rdma@vger.kernel.org

Link: https://lore.kernel.org/r/166697256704.61150.17388516338310645808.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/166732028840.3186319.8512284239779728860.stgit@warthog.procyon.org.uk/
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smbdirect.c