From: Jules Irenge <jbi.octave@xxxxxxxxx> Subject: fs/proc/inode.c: annotate close_pdeo() for sparse Fix sparse locking imbalance warning: warning: context imbalance in close_pdeo() - unexpected unlock Link: http://lkml.kernel.org/r/20200227201538.GA30462@avx2 Signed-off-by: Jules Irenge <jbi.octave@xxxxxxxxx> Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/inode.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/proc/inode.c~proc-annotate-close_pdeo-for-sparse +++ a/fs/proc/inode.c @@ -202,6 +202,7 @@ static void unuse_pde(struct proc_dir_en /* 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: _