[PATCH v2] nvmet-tcp: Don't kmap() pages which can't come from HIGHMEM
Fabio M. De Francesco
fmdefrancesco at gmail.com
Sun Aug 21 12:12:30 PDT 2022
On domenica 21 agosto 2022 07:46:02 CEST Christoph Hellwig wrote:
> This introduced tons of pointless over 80 character lines, please stick
> to a proper coding style.
I'm sorry for this mistake. I'll break those long lines in the next version.
> Also or in-kernel I/O wouldn't it make more sense to use a BVEC iter
> insted of a KVEC if we have the pages anyway? Or does networking not
> support them properly?
I must admit I knew practically nothing about this code until I met it while
doing my long journey towards kmap() and kmap_atomic() removals. I can say the
same for regard to the differences between BVEC iter and KVEC iter.
Since you are asking this, today I did some research and read code from other
drivers/subsystems, despite this particular issue is out of the scope of my
patch.
I also read an interesting article in LWN: "The iov_iter interface" at
https://lwn.net/Articles/625077/
I may very well be wrong, however I think that iov_iter_kvec() is better
suited here.
@Sagi, anything to add to this discussion?
Thanks,
Fabio
More information about the Linux-nvme
mailing list