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:
Lukas Ertl 2004-08-23 17:50:18 +00:00
parent f2f3aa6075
commit a3423d4c6f

View File

@ -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);
}