diff options
author | sos <sos@FreeBSD.org> | 2003-11-24 14:54:41 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2003-11-24 14:54:41 +0000 |
commit | a7fe60b2493782cf459e0bb07164f5bd2f286535 (patch) | |
tree | 347021bb6bc2360604db16c8b2c7c4bc42ccb6d0 /sys/dev/ata | |
parent | fbc1154fb8c54d320b569336f2662334a1e3f8fc (diff) | |
download | FreeBSD-src-a7fe60b2493782cf459e0bb07164f5bd2f286535.zip FreeBSD-src-a7fe60b2493782cf459e0bb07164f5bd2f286535.tar.gz |
Correct the former patch, I accidently committed the wrong version.
Approved by: re@
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-raid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index d541f0e..95df9f6 100644 --- a/sys/dev/ata/ata-raid.c +++ b/sys/dev/ata/ata-raid.c @@ -780,7 +780,7 @@ arstrategy(struct bio *bp) (rdp->disks[buf1->drive+rdp->width].flags & AR_DF_ONLINE); /* if mirror gone or close to last access on source */ - if (!(mir_online) || + if (!mir_online || ((src_online) && buf1->bp.bio_pblkno >= (rdp->disks[buf1->drive].last_lba - AR_PROXIMITY) && @@ -789,7 +789,7 @@ arstrategy(struct bio *bp) rdp->flags &= ~AR_F_TOGGLE; } /* if source gone or close to last access on mirror */ - else if (!src_online) || + else if (!src_online || ((mir_online) && buf1->bp.bio_pblkno >= (rdp->disks[buf1->drive + rdp->width].last_lba - |