Bug ID | 1025077 |
---|---|
Summary | Btrfs: fix qgroup rescan worker initialization |
Classification | openSUSE |
Product | openSUSE Distribution |
Version | Leap 42.1 |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Kernel |
Assignee | jeffm@suse.com |
Reporter | jeffm@suse.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
From: Filipe Manana <fdmanana@suse.com> Date: Thu, 24 Nov 2016 02:09:04 +0000 Subject: Btrfs: fix qgroup rescan worker initialization Git-commit: 8d9eddad19467b008e0c881bc3133d7da94b7ec1 Patch-mainline: v4.10-rc1 References: pulled from 4.4-stable (4.1-stable had expired) 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@vger.kernel.org # 4.4+ Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Acked-by: Jeff Mahoney <jeffm@suse.com> --- fs/btrfs/qgroup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)