[PATCH v3 1/1] nvmet-tcp: Don't kmap() pages which can't come from HIGHMEM
Al Viro
viro at zeniv.linux.org.uk
Tue Aug 23 16:32:53 PDT 2022
On Mon, Aug 22, 2022 at 04:24:38PM +0200, Fabio M. De Francesco wrote:
> Therefore, replace the kmap() of sg_page(sg) with a page_address() and
> delete the "nr_mapped" field from "nvmet_tcp_cmd" and instead pass a
> local variable to iov_iter_kvec() from the call site in
> nvmet_tcp_map_pdu_iovec().
I'd suggest looking into switching to ITER_BVEC...
More information about the Linux-nvme
mailing list