Re: [PATCH] btrfs: qgroup: Init flags with RESCAN bit at quota enable time

2018-07-27 Thread Misono Tomohiro
On 2018/07/27 15:09, Qu Wenruo wrote: > > > On 2018年07月27日 09:43, Misono Tomohiro wrote: >> On 2018/07/27 10:19, Qu Wenruo wrote: >>> >>> >>> On 2018年07月27日 09:10, Misono Tomohiro wrote: On 2018/07/26 18:15, Qu Wenruo wrote: > Between btrfs_quota_enable() finished and rescan kicked in,

Re: [PATCH] btrfs: qgroup: Init flags with RESCAN bit at quota enable time

2018-07-27 Thread Qu Wenruo
On 2018年07月27日 09:43, Misono Tomohiro wrote: > On 2018/07/27 10:19, Qu Wenruo wrote: >> >> >> On 2018年07月27日 09:10, Misono Tomohiro wrote: >>> On 2018/07/26 18:15, Qu Wenruo wrote: Between btrfs_quota_enable() finished and rescan kicked in, there is a small window that quota status has

Re: [PATCH] btrfs: qgroup: Init flags with RESCAN bit at quota enable time

2018-07-26 Thread Misono Tomohiro
On 2018/07/27 10:19, Qu Wenruo wrote: > > > On 2018年07月27日 09:10, Misono Tomohiro wrote: >> On 2018/07/26 18:15, Qu Wenruo wrote: >>> Between btrfs_quota_enable() finished and rescan kicked in, there is a >>> small window that quota status has (ON | INCONSISTENT) bits set but >>> without RESCAN

Re: [PATCH] btrfs: qgroup: Init flags with RESCAN bit at quota enable time

2018-07-26 Thread Qu Wenruo
On 2018年07月27日 09:10, Misono Tomohiro wrote: > On 2018/07/26 18:15, Qu Wenruo wrote: >> Between btrfs_quota_enable() finished and rescan kicked in, there is a >> small window that quota status has (ON | INCONSISTENT) bits set but >> without RESCAN bits set. >> >> And transaction is committed

Re: [PATCH] btrfs: qgroup: Init flags with RESCAN bit at quota enable time

2018-07-26 Thread Misono Tomohiro
On 2018/07/26 18:15, Qu Wenruo wrote: > Between btrfs_quota_enable() finished and rescan kicked in, there is a > small window that quota status has (ON | INCONSISTENT) bits set but > without RESCAN bits set. > > And transaction is committed inside the window and then power loss > happens, we will