Compare the addresses of two RAID5 work packets directly instead
of the addresses of their related bios when locking one out, since they could share a bio and this could lead to parity corruption.
This commit is contained in:
parent
f2f3aa6075
commit
a3423d4c6f
@ -101,7 +101,7 @@ gv_stripe_active(struct gv_raid5_packet *wp, struct gv_plex *sc)
|
||||
|
||||
TAILQ_FOREACH(wpa, &sc->worklist, list) {
|
||||
if (wpa->lockbase == wp->lockbase) {
|
||||
if (wpa->bio == wp->bio)
|
||||
if (wpa == wp)
|
||||
return (0);
|
||||
return (1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user