Correct the check if a plex is accessible in case it is not up.

This makes degraded RAID5 plexes actually work.
This commit is contained in:
Lukas Ertl 2005-08-22 23:24:26 +00:00
parent 23655387e9
commit fdb9eda84f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149379

View File

@ -261,7 +261,7 @@ gv_vol_normal_request(struct gv_volume *v, struct bio *bp)
if (p == NULL ||
(p->org == GV_PLEX_RAID5 && p->state < GV_PLEX_DEGRADED) ||
(p->state <= GV_PLEX_DEGRADED)) {
(p->org != GV_PLEX_RAID5 && p->state <= GV_PLEX_DEGRADED)) {
g_destroy_bio(cbp);
bp->bio_children--;
g_io_deliver(bp, ENXIO);