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:
parent
23655387e9
commit
fdb9eda84f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user