aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-11 13:50:13 +1100
committerNeilBrown <neilb@suse.de>2012-10-11 13:50:13 +1100
commit1ed850f356a0a422013846b5291acff08815008b (patch)
tree9dd66a6b204a385574b7a885b6415e58f26a6780 /tools/perf/scripts/python/export-to-postgresql.py
parentmd: When RAID5 is dirty, force reconstruct-write instead of read-modify-write. (diff)
downloadlinux-dev-1ed850f356a0a422013846b5291acff08815008b.tar.xz
linux-dev-1ed850f356a0a422013846b5291acff08815008b.zip
md/raid5: make sure to_read and to_write never go negative.
to_read and to_write are part of the result of analysing a stripe before handling it. Their use is to avoid some loops and tests if the values are known to be zero. Thus it is not a problem if they are a little bit larger than they should be. So decrementing them in handle_failed_stripe serves little value, and due to races it could cause some loops to be skipped incorrectly. So remove those decrements. Reported-by: "Jianpeng Ma" <majianpeng@gmail.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions