Re: [RFC PATCH 2/2] Btrfs: fix deadlock on umount by umount_prepare interface

2012-03-21 Thread Dave Chinner
On Thu, Mar 22, 2012 at 01:25:26PM +0800, Miao Xie wrote: > On Thu, 22 Mar 2012 15:39:36 +1100, Dave Chinner wrote: > > On Thu, Mar 22, 2012 at 11:13:17AM +0800, Miao Xie wrote: > >> The reason the deadlock is that: > >> Task Btrfs-cleaner > >> umount() > >>

Re: [RFC PATCH 2/2] Btrfs: fix deadlock on umount by umount_prepare interface

2012-03-21 Thread Miao Xie
On Thu, 22 Mar 2012 15:39:36 +1100, Dave Chinner wrote: > On Thu, Mar 22, 2012 at 11:13:17AM +0800, Miao Xie wrote: >> The reason the deadlock is that: >> Task Btrfs-cleaner >> umount() >> down_write(&s->s_umount) >> close_ctree() >> wait for

Re: [RFC PATCH 2/2] Btrfs: fix deadlock on umount by umount_prepare interface

2012-03-21 Thread Dave Chinner
On Thu, Mar 22, 2012 at 11:13:17AM +0800, Miao Xie wrote: > The reason the deadlock is that: > TaskBtrfs-cleaner > umount() > down_write(&s->s_umount) > close_ctree() > wait for the end of > btrfs-cleaner >

[RFC PATCH 2/2] Btrfs: fix deadlock on umount by umount_prepare interface

2012-03-21 Thread Miao Xie
The reason the deadlock is that: Task Btrfs-cleaner umount() down_write(&s->s_umount) close_ctree() wait for the end of btrfs-cleaner start_transaction reserve