diff mbox series

[net] kcm: do not sense pfmemalloc status in kcm_sendpage()

Message ID 20221027040637.1107703-1-edumazet@google.com (mailing list archive)
State Accepted
Commit ee15e1f38dc201fa7d63c13aa258b728dce27f4d
Delegated to: Netdev Maintainers
Headers show
Series [net] kcm: do not sense pfmemalloc status in kcm_sendpage() | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net
netdev/fixes_present success Fixes tag present in non-next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers fail 1 blamed authors not CCed: shakeelb@google.com; 2 maintainers not CCed: cong.wang@bytedance.com shakeelb@google.com
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Eric Dumazet Oct. 27, 2022, 4:06 a.m. UTC
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")
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/kcm/kcmsock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 27, 2022, 6:40 p.m. UTC | #1
Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

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")
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
>  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!
diff mbox series

Patch

diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c
index 63e32f181f435334530c42e54c7a36e8e993104b..a5004228111de324a563ef6f26863181616c0241 100644
--- a/net/kcm/kcmsock.c
+++ b/net/kcm/kcmsock.c
@@ -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: