[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200227201538.GA30462@avx2>
Date: Thu, 27 Feb 2020 23:15:38 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
jbi.octave@...il.com
Subject: [PATCH] proc: annotate close_pdeo() for sparse
From: Jules Irenge <jbi.octave@...il.com>
Fix sparse locking imbalance warning:
warning: context imbalance in close_pdeo() - unexpected unlock
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
---
fs/proc/inode.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -139,6 +139,7 @@ static void unuse_pde(struct proc_dir_entry *pde)
/* pde is locked on entry, unlocked on exit */
static void close_pdeo(struct proc_dir_entry *pde, struct pde_opener *pdeo)
+ __releases(&pde->pde_unload_lock)
{
/*
* close() (proc_reg_release()) can't delete an entry and proceed:
Powered by blists - more mailing lists