1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134221

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