diff options
author | 2013-10-12 02:11:12 +0800 | |
---|---|---|
committer | 2013-11-11 22:12:58 -0500 | |
commit | 3b7a016f44d51ba8425c244f4c607f93fa213fd2 (patch) | |
tree | 5277f63351808793d863e08fe5c2e395af29e254 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Btrfs: check file extent type before anything else (diff) | |
download | linux-dev-3b7a016f44d51ba8425c244f4c607f93fa213fd2.tar.xz linux-dev-3b7a016f44d51ba8425c244f4c607f93fa213fd2.zip |
Btrfs: avoid unnecessary scrub workers allocation
We only allocate scrub workers if we pass all the necessary
checks, for example, there are no operation in progress.
Besides, move mutex lock protection outside of scrub_workers_get()
/scrub_workers_put().
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions