From: "J. R. Okajima" <hooanon05g@gmail.com>
To: viro@zeniv.linux.org.uk
Cc: linux-fsdevel@vger.kernel.org
Subject: Q: spin_unlock(dentry) after lock_parent(dentry)
Date: Tue, 03 Jun 2014 23:36:55 +0900 [thread overview]
Message-ID: <23341.1401806215@jrobl> (raw)
Hello Al Viro,
I have a question about spin_unlock(dentry) after lock_parent(dentry).
In lock_parent(dentry), spin_unlock(dentry) is called. And
spin_lock(dentry) is called again when (parent != dentry) is
true. Otherwise, dentry left spin_unlock-ed and lock_parent() returns
NULL.
Even in the case of lock_parent() returns NULL, shrink_dentry_list()
calls spin_unlock(dentry). Is it balanced and correct?
J. R. Okajima
next reply other threads:[~2014-06-03 14:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-03 14:36 J. R. Okajima [this message]
2014-06-03 23:17 ` Q: spin_unlock(dentry) after lock_parent(dentry) Al Viro
2014-06-04 17:03 ` J. R. Okajima
2014-06-07 13:51 ` J. R. Okajima
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23341.1401806215@jrobl \
--to=hooanon05g@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.