diff options
author | 2014-04-15 09:12:54 +0800 | |
---|---|---|
committer | 2014-04-17 17:05:28 +1000 | |
commit | c7a6d35e463caacab08ca0333bdec5b8bdce8bbb (patch) | |
tree | bf4abac968402f11ba3d26e238ab62173f2bb23a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | raid5: get_active_stripe avoids device_lock (diff) | |
download | linux-dev-c7a6d35e463caacab08ca0333bdec5b8bdce8bbb.tar.xz linux-dev-c7a6d35e463caacab08ca0333bdec5b8bdce8bbb.zip |
raid5: fix a race of stripe count check
I hit another BUG_ON with e240c1839d11152b0355442. In __get_priority_stripe(),
stripe count equals to 0 initially. Between atomic_inc and BUG_ON,
get_active_stripe() finds the stripe. So the stripe count isn't 1 any more.
V2: keeps the BUG_ON suggested by Neil.
Signed-off-by: Shaohua Li <shli@fusionio.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