diff options
author | Wang Shilong <wangsl-fnst@cn.fujitsu.com> | 2013-04-07 10:50:17 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:54:39 -0400 |
commit | 58400fce5ac5939aadac8ce682edc192c6172f80 (patch) | |
tree | e50f657851833043afaf1ece49bc5e2b348c58a5 /ipc | |
parent | f2f6ed3d54648ec19dcdeec30f66843cf7a38487 (diff) | |
download | linux-58400fce5ac5939aadac8ce682edc192c6172f80.tar.bz2 |
Btrfs: remove some unnecessary spin_lock usages
We use mutex lock to protect all the user change operations.
So when we are calling find_qgroup_rb() to check whether qgroup
exists, we don't have to hold spin_lock.
Besides, when enabling/disabling quota, it must be single thread
when operations come here. spin lock must be firstly used to
clear quota_root when disabling quota, while enabling quota, spin
lock must be used to complete the last assign work.
Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions