* BUG? deadlock bug at generic_shutdown_
@ 2009-07-30 3:29 홍신 shin hong
2009-07-30 3:41 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: 홍신 shin hong @ 2009-07-30 3:29 UTC (permalink / raw)
To: linux-fsdevel
Hi. I am reporting a suspected deadlock bug.
generic_shutdown_super() acquires lock_super(sb)
and then acquires lock_kernel().
However, do_remount() acquires lock_super() while
it holds lock_kernel().
Therefore, concurrent execution of generic_shutdown_super()
and do_remount() may result deadlock.
Please examine this report. Thank you.
Sincerely
Shin Hong
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BUG? deadlock bug at generic_shutdown_
2009-07-30 3:29 BUG? deadlock bug at generic_shutdown_ 홍신 shin hong
@ 2009-07-30 3:41 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2009-07-30 3:41 UTC (permalink / raw)
To: ?????? shin hong; +Cc: linux-fsdevel
On Thu, Jul 30, 2009 at 12:29:57PM +0900, ?????? shin hong wrote:
> Hi. I am reporting a suspected deadlock bug.
>
> generic_shutdown_super() acquires lock_super(sb)
> and then acquires lock_kernel().
It hasn't since commit a9e220f8322e2b0e0b8903fe00265461cffad3f0.
Please work against a current kernel.
> However, do_remount() acquires lock_super() while
> it holds lock_kernel().
>
> Therefore, concurrent execution of generic_shutdown_super()
> and do_remount() may result deadlock.
The reason this wasn't a problem before the commit above is that
generic_shutdown_super() can never execute concurrently with do_remount.
For generic_shutdown_super() to be called, there must be no remaining
references to the super_block. do_remount() must hold a reference to
the super_block.
CONFIG_LOCKDEP finds lock inversion problems; I suspect you're wasting
your time looking for them by hand.
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-30 3:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30 3:29 BUG? deadlock bug at generic_shutdown_ 홍신 shin hong
2009-07-30 3:41 ` Matthew Wilcox
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).