summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-21 04:29:13 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-28 19:07:26 +0300
commit1354e1a13e821040e537d5e63799df7171729945 (patch)
treecfd844d7ce857a5e29afb0add7853bcc476b17ca /tools/perf/scripts/python/mem-phys-addr.py
parent008ef0969dd966ccb567d9c5c6e606f68119a380 (diff)
downloadlinux-1354e1a13e821040e537d5e63799df7171729945.tar.xz
btrfs: use mutex in btrfs_resume_balance_async
While the spinlock does not cause problems, using the mutex is more correct and consistent with others. The global status of balance is eg. checked from btrfs_pause_balance or btrfs_cancel_balance with mutex. Resuming balance happens during mount or ro->rw remount. In the former case, no other user of the balance_ctl exists, in the latter, balance cannot run until the ro/rw transition is finished. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions