archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <>
Subject: [PATCH] proc: annotate close_pdeo() for sparse
Date: Thu, 27 Feb 2020 23:15:38 +0300	[thread overview]
Message-ID: <20200227201538.GA30462@avx2> (raw)

From: Jules Irenge <>

Fix sparse locking imbalance warning:

	warning: context imbalance in close_pdeo() - unexpected unlock

Signed-off-by: Jules Irenge <>
Signed-off-by: Alexey Dobriyan <>

 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:

                 reply	other threads:[~2020-02-27 20:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200227201538.GA30462@avx2 \ \ \ \ \ \
    --subject='Re: [PATCH] proc: annotate close_pdeo() for sparse' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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