diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-04-29 16:25:22 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-04-29 16:25:22 +0000 |
| commit | 87150cb06d29e7f63fbdef09a1a12a8f037312c5 (patch) | |
| tree | d1d3455602854e0d42c723a3ad39f617f93c426c /sys/dev/vinum | |
| parent | c1462ad3254434cec3fbf14df1a9c717bb514f94 (diff) | |
Notes
Diffstat (limited to 'sys/dev/vinum')
| -rw-r--r-- | sys/dev/vinum/vinumio.c | 4 | ||||
| -rw-r--r-- | sys/dev/vinum/vinumrevive.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index ee662d10752a2..5c18ff71600c2 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -309,7 +309,7 @@ driveio(struct drive *drive, char *buf, size_t length, off_t offset, int flag) bp->b_data = buf; bp->b_bcount = len; DEV_STRATEGY(bp, 0); /* initiate the transfer */ - error = biowait(bp); + error = bufwait(bp); bp->b_data = bp->b_saveaddr; bp->b_flags |= B_INVAL | B_AGE; bp->b_ioflags &= ~BIO_ERROR; @@ -769,7 +769,7 @@ write_volume_label(int volno) * Negotiate with phk to get it fixed. */ DEV_STRATEGY(bp, 0); - error = biowait(bp); + error = bufwait(bp); bp->b_flags |= B_INVAL | B_AGE; bp->b_ioflags &= ~BIO_ERROR; brelse(bp); diff --git a/sys/dev/vinum/vinumrevive.c b/sys/dev/vinum/vinumrevive.c index 90fa15d298fb3..315432c9d4713 100644 --- a/sys/dev/vinum/vinumrevive.c +++ b/sys/dev/vinum/vinumrevive.c @@ -173,7 +173,7 @@ revive_block(int sdno) bp->b_iocmd = BIO_READ; /* either way, read it */ bp->b_flags = 0; vinumstart(bp, 1); - biowait(bp); + bufwait(bp); } if (bp->b_ioflags & BIO_ERROR) @@ -189,7 +189,7 @@ revive_block(int sdno) bp->b_resid = bp->b_bcount; bp->b_blkno = sd->revived; /* write it to here */ sdio(bp); /* perform the I/O */ - biowait(bp); + bufwait(bp); if (bp->b_ioflags & BIO_ERROR) error = bp->b_error; else { @@ -317,7 +317,7 @@ parityops(struct vinum_ioctl_msg *data, enum parityop op) BUF_LOCKINIT(pbp); /* get a lock for the buffer */ BUF_LOCK(pbp, LK_EXCLUSIVE); /* and lock it */ sdio(pbp); /* perform the I/O */ - biowait(pbp); + bufwait(pbp); } if (reply->error == EAGAIN) { /* still OK, */ *pstripep += (pbp->b_bcount >> DEV_BSHIFT); /* moved this much further down */ @@ -444,7 +444,7 @@ parityrebuild(struct plex *plex, */ for (sdno = 0; sdno < plex->subdisks; sdno++) { /* for each subdisk */ if ((sdno != psd) || check) { - biowait(bpp[sdno]); + bufwait(bpp[sdno]); if (bpp[sdno]->b_ioflags & BIO_ERROR) /* can't read, */ error = bpp[sdno]->b_error; } @@ -541,7 +541,7 @@ initsd(int sdno, int verify) BUF_LOCK(bp, LK_EXCLUSIVE); /* and lock it */ bp->b_iocmd = BIO_WRITE; sdio(bp); /* perform the I/O */ - biowait(bp); + bufwait(bp); if (bp->b_ioflags & BIO_ERROR) error = bp->b_error; if (bp->b_qindex == 0) { /* not on a queue, */ @@ -565,7 +565,7 @@ initsd(int sdno, int verify) BUF_LOCKINIT(bp); /* get a lock for the buffer */ BUF_LOCK(bp, LK_EXCLUSIVE); /* and lock it */ sdio(bp); - biowait(bp); + bufwait(bp); /* * XXX Bug fix code. This is hopefully no * longer needed (21 February 2000). |
