Re: [PATCH v5 0/9] btrfs: Fix freeze/sysfs deadlock in better method.

2015-02-01 Thread Qu Wenruo
Original Message Subject: Re: [PATCH v5 0/9] btrfs: Fix freeze/sysfs deadlock in better method. From: Miao Xie To: , Qu Wenruo , Date: 2015年01月31日 10:30 On Fri, 30 Jan 2015 20:17:49 +0100, David Sterba wrote: On Fri, Jan 30, 2015 at 05:20:45PM +0800, Qu Wenruo wrote

Re: [PATCH v5 0/9] btrfs: Fix freeze/sysfs deadlock in better method.

2015-01-30 Thread Miao Xie
On Fri, 30 Jan 2015 20:17:49 +0100, David Sterba wrote: > On Fri, Jan 30, 2015 at 05:20:45PM +0800, Qu Wenruo wrote: >> [Use VFS protect for sysfs change] >> The 6th patch will introduce a new help function sb_want_write() to >> claim write permission to a superblock. >> With this, we are able to d

Re: [PATCH v5 0/9] btrfs: Fix freeze/sysfs deadlock in better method.

2015-01-30 Thread David Sterba
On Fri, Jan 30, 2015 at 05:20:45PM +0800, Qu Wenruo wrote: > [Use VFS protect for sysfs change] > The 6th patch will introduce a new help function sb_want_write() to > claim write permission to a superblock. > With this, we are able to do write protection like mnt_want_write() but > only needs to e

[PATCH v5 0/9] btrfs: Fix freeze/sysfs deadlock in better method.

2015-01-30 Thread Qu Wenruo
Patchset to solve the previous found freeze/sysfs deadlock. Unlike previous pending_changes, which uses transaction commits to ensure mount option doesn't change during transaction. This idea is great in concept, but will introduce extra and somewhat duplicated ro/freeze check, and the original sy