BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next RESEND] bpf: Use sockfd_put() helper
@ 2024-08-30  2:06 Jinjie Ruan
  0 siblings, 0 replies; 3+ messages in thread
From: Jinjie Ruan @ 2024-08-30  2:06 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, bpf, linux-kernel
  Cc: ruanjinjie

Replace fput() with sockfd_put() in bpf_fd_reuseport_array_update_elem().

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
---
v1-> RESEND
- Use bpf-next instead of -next for commit title prefix.
---
 kernel/bpf/reuseport_array.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/bpf/reuseport_array.c b/kernel/bpf/reuseport_array.c
index 4b4f9670f1a9..49b8e5a0c6b4 100644
--- a/kernel/bpf/reuseport_array.c
+++ b/kernel/bpf/reuseport_array.c
@@ -308,7 +308,7 @@ int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
 
 	spin_unlock_bh(&reuseport_lock);
 put_file:
-	fput(socket->file);
+	sockfd_put(socket);
 	return err;
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH bpf-next RESEND] bpf: Use sockfd_put() helper
@ 2024-08-30  2:07 Jinjie Ruan
  2024-08-30 16:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 3+ messages in thread
From: Jinjie Ruan @ 2024-08-30  2:07 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, bpf, linux-kernel
  Cc: ruanjinjie

Replace fput() with sockfd_put() in bpf_fd_reuseport_array_update_elem().

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
---
v1-> RESEND
- Use bpf-next instead of -next for commit title prefix.
- Add acked-by.
---
 kernel/bpf/reuseport_array.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/bpf/reuseport_array.c b/kernel/bpf/reuseport_array.c
index 4b4f9670f1a9..49b8e5a0c6b4 100644
--- a/kernel/bpf/reuseport_array.c
+++ b/kernel/bpf/reuseport_array.c
@@ -308,7 +308,7 @@ int bpf_fd_reuseport_array_update_elem(struct bpf_map *map, void *key,
 
 	spin_unlock_bh(&reuseport_lock);
 put_file:
-	fput(socket->file);
+	sockfd_put(socket);
 	return err;
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next RESEND] bpf: Use sockfd_put() helper
  2024-08-30  2:07 [PATCH bpf-next RESEND] bpf: Use sockfd_put() helper Jinjie Ruan
@ 2024-08-30 16:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-08-30 16:00 UTC (permalink / raw)
  To: Jinjie Ruan
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, bpf, linux-kernel

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Fri, 30 Aug 2024 10:07:56 +0800 you wrote:
> Replace fput() with sockfd_put() in bpf_fd_reuseport_array_update_elem().
> 
> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
> Acked-by: Stanislav Fomichev <sdf@fomichev.me>
> ---
> v1-> RESEND
> - Use bpf-next instead of -next for commit title prefix.
> - Add acked-by.
> 
> [...]

Here is the summary with links:
  - [bpf-next,RESEND] bpf: Use sockfd_put() helper
    https://git.kernel.org/bpf/bpf-next/c/65ef66d91803

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-08-30 16:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-30  2:07 [PATCH bpf-next RESEND] bpf: Use sockfd_put() helper Jinjie Ruan
2024-08-30 16:00 ` patchwork-bot+netdevbpf
  -- strict thread matches above, loose matches on Subject: below --
2024-08-30  2:06 Jinjie Ruan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox