]> git.ipfire.org Git - people/ms/linux.git/commit
btrfs: qgroup: fix quota disable during rescan
authorJustin Maggard <jmaggard10@gmail.com>
Fri, 6 Nov 2015 18:36:42 +0000 (10:36 -0800)
committerChris Mason <clm@fb.com>
Wed, 25 Nov 2015 13:22:08 +0000 (05:22 -0800)
commit967ef5131e42d6e3bb216c44161d893048a49957
tree245253c420e34541f82ef76d46f2b89226ab025b
parent036a9348dcd0060e3df8f5b5db2a59e7d7eaf1f5
btrfs: qgroup: fix quota disable during rescan

There's a race condition that leads to a NULL pointer dereference if you
disable quotas while a quota rescan is running.  To fix this, we just need
to wait for the quota rescan worker to actually exit before tearing down
the quota structures.

Signed-off-by: Justin Maggard <jmaggard@netgear.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/qgroup.c