Repository navigation
Commit c7a6d35
raid5: fix a race of stripe count check
I hit another BUG_ON with e240c18. 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>1 parent e240c18 commit c7a6d35
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4370 | 4370 | | |
4371 | 4371 | | |
4372 | 4372 | | |
4373 | | - | |
4374 | | - | |
| 4373 | + | |
4375 | 4374 | | |
4376 | 4375 | | |
4377 | 4376 | | |
| |||
0 commit comments