Skip to contentSkip to conversation

inode: Remove second initialization of the bpf_preload_lock

PATCH Applied Muhammad Usama Anjum 2 participants 2 messages Apr 5, 2021 – Apr 6, 2021

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

PATCH 1/1 inode: Remove second initialization of the bpf_preload_lock

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

---
 kernel/bpf/inode.c | 2 --
 1 file changed, 2 deletions(-)
kernel/bpf/inode.c +0 -2
index 1576ff331ee4..f441d521ef77 100644
@@ -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;
Signature · 1 line
2.25.1
#1 lore raw
This patch was applied to bpf/bpf-next.git (refs/heads/master):

Hello:

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

Quoted 7 lines · 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.

---
 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