Skip to contentSkip to conversation

kcm: do not sense pfmemalloc status in kcm_sendpage()

PATCH Applied Eric Dumazet 2 participants 2 messages Oct 27, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kcm: do not sense pfmemalloc status in kcm_sendpage()

Similar to changes done in TCP in blamed commit. We should not sense pfmemalloc status in sendpage() methods.

Fixes 326140063946 ("tcp: TX zerocopy should not sense pfmemalloc status")
---
 net/kcm/kcmsock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/kcm/kcmsock.c +1 -1
index 63e32f181f435334530c42e54c7a36e8e993104b..a5004228111de324a563ef6f26863181616c0241 100644
@@ -839,7 +839,7 @@ static ssize_t kcm_sendpage(struct socket *sock, struct page *page,
 	}
 
 	get_page(page);
-	skb_fill_page_desc(skb, i, page, offset, size);
+	skb_fill_page_desc_noacc(skb, i, page, offset, size);
 	skb_shinfo(skb)->flags |= SKBFL_SHARED_FRAG;
 
 coalesced:
Signature · 1 line
2.38.1.273.g43a17bfeac-goog
#1 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 27 Oct 2022 04:06:37 +0000 you wrote:

Similar to changes done in TCP in blamed commit. We should not sense pfmemalloc status in sendpage() methods.

Fixes 326140063946 ("tcp: TX zerocopy should not sense pfmemalloc status")
---
 net/kcm/kcmsock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net] kcm: do not sense pfmemalloc status in kcm_sendpage()

    https://git.kernel.org/netdev/net/c/ee15e1f38dc2

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html