diff options
author | 2015-07-21 12:22:29 +0800 | |
---|---|---|
committer | 2015-08-09 07:07:11 -0700 | |
commit | f2f66a2f886383fb76aca8ecc1bcc116c5d1f6fe (patch) | |
tree | bdacc73dabeab49648b13a2a9df5b66032682e70 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: Show detail information when mount failed on missing devices (diff) | |
download | wireguard-linux-f2f66a2f886383fb76aca8ecc1bcc116c5d1f6fe.tar.xz wireguard-linux-f2f66a2f886383fb76aca8ecc1bcc116c5d1f6fe.zip |
btrfs: Check cancel and pause in interval of scrub operation
Old code checking cancel and pause request inside scrub stripe
operation, like:
loop() {
if (parity) {
scrub_parity_stripe();
continue;
}
check_cancel_and_pause()
scrub_normal_stripe();
}
Reason is when introduce raid56 stripe scrub, new code is inserted
simplely to front of loop.
Better to:
loop() {
check_cancel_and_pause()
if (parity)
scrub_parity_stripe();
else
scrub_normal_stripe();
}
This patch adjusted code place to realize above sequence.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions