From a3423d4c6f0a504f12a8c6d7cb386f44f7e48791 Mon Sep 17 00:00:00 2001 From: Lukas Ertl Date: Mon, 23 Aug 2004 17:50:18 +0000 Subject: [PATCH] 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. --- sys/geom/vinum/geom_vinum_raid5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/vinum/geom_vinum_raid5.c b/sys/geom/vinum/geom_vinum_raid5.c index 55eb582e40bf..8dfe8ab570d2 100644 --- a/sys/geom/vinum/geom_vinum_raid5.c +++ b/sys/geom/vinum/geom_vinum_raid5.c @@ -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); }