On Thu, Nov 24, 2016 at 02:18:29AM +0000, fdmanana@xxxxxxxxxx wrote: > From: Filipe Manana <fdmanana@xxxxxxxx> > > We were setting the qgroup_rescan_running flag to true only after the > rescan worker started (which is a task run by a queue). So if a user > space task starts a rescan and immediately after asks to wait for the > rescan worker to finish, this second call might happen before the rescan > worker task starts running, in which case the rescan wait ioctl returns > immediatley, not waiting for the rescan worker to finish. > > This was making the fstest btrfs/022 fail very often. > > Fixes: d2c609b834d6 (btrfs: properly track when rescan worker is running) > Cc: stable@xxxxxxxxxxxxxxx # 4.4+ > Signed-off-by: Filipe Manana <fdmanana@xxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
