linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q: spin_unlock(dentry) after lock_parent(dentry)
@ 2014-06-03 14:36 J. R. Okajima
  2014-06-03 23:17 ` Al Viro
  0 siblings, 1 reply; 4+ messages in thread
From: J. R. Okajima @ 2014-06-03 14:36 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-07 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 14:36 Q: spin_unlock(dentry) after lock_parent(dentry) J. R. Okajima
2014-06-03 23:17 ` Al Viro
2014-06-04 17:03   ` J. R. Okajima
2014-06-07 13:51     ` J. R. Okajima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).