LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH] inode: Remove second initialization of the bpf_preload_lock
@ 2021-04-05 19:49 Muhammad Usama Anjum
  2021-04-06 21:59 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Muhammad Usama Anjum @ 2021-04-05 19:49 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, open list:BPF (Safe dynamic programs and tools),
	open list:BPF (Safe dynamic programs and tools), open list,
	zhengyongjun3, dan.carpenter
  Cc: musamaanjum

bpf_preload_lock is already defined with DEFINE_MUTEX. There is no need
to initialize it again. Remove the extraneous initialization.

Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
---
 kernel/bpf/inode.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/bpf/inode.c b/kernel/bpf/inode.c
index 1576ff331ee4..f441d521ef77 100644
--- a/kernel/bpf/inode.c
+++ b/kernel/bpf/inode.c
@@ -816,8 +816,6 @@ static int __init bpf_init(void)
 {
 	int ret;
 
-	mutex_init(&bpf_preload_lock);
-
 	ret = sysfs_create_mount_point(fs_kobj, "bpf");
 	if (ret)
 		return ret;
-- 
2.25.1


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

* Re: [PATCH] inode: Remove second initialization of the bpf_preload_lock
  2021-04-05 19:49 [PATCH] inode: Remove second initialization of the bpf_preload_lock Muhammad Usama Anjum
@ 2021-04-06 21:59 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-04-06 21:59 UTC (permalink / raw)
  To: Muhammad Usama Anjum
  Cc: ast, daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
	kpsingh, netdev, bpf, linux-kernel, zhengyongjun3, dan.carpenter

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

On Tue, 6 Apr 2021 00:49:04 +0500 you wrote:
> bpf_preload_lock is already defined with DEFINE_MUTEX. There is no need
> to initialize it again. Remove the extraneous initialization.
> 
> Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
> ---
>  kernel/bpf/inode.c | 2 --
>  1 file changed, 2 deletions(-)

Here is the summary with links:
  - inode: Remove second initialization of the bpf_preload_lock
    https://git.kernel.org/bpf/bpf-next/c/957dca3df624

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] 2+ messages in thread

end of thread, other threads:[~2021-04-06 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 19:49 [PATCH] inode: Remove second initialization of the bpf_preload_lock Muhammad Usama Anjum
2021-04-06 21:59 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).