]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: allow skb_datagram_iter to be called from any context
authorSagi Grimberg <sagi@grimberg.me>
Wed, 26 Jun 2024 10:00:08 +0000 (13:00 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Jul 2024 12:55:15 +0000 (14:55 +0200)
commitd2d30a376d9cc94c6fb730c58b3e5b7426ecb6de
treee1139a87d66e607fcd85dec5f1585df9fe42b43d
parentc93a6f62cb1bd097aef2e4588648a420d175eee2
net: allow skb_datagram_iter to be called from any context

We only use the mapping in a single context, so kmap_local is sufficient
and cheaper. Make sure to use skb_frag_foreach_page as skb frags may
contain compound pages and we need to map page by page.

Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202406161539.b5ff7b20-oliver.sang@intel.com
Fixes: 950fcaecd5cc ("datagram: consolidate datagram copy to iter helpers")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://patch.msgid.link/20240626100008.831849-1-sagi@grimberg.me
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/datagram.c