summaryrefslogtreecommitdiff
path: root/sys/dev/vinum/vinumio.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-06-29 04:08:51 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-06-29 04:08:51 +0000
commit839832f8d01e1d47672b92fbe22d20acdaafca72 (patch)
tree8250fddcc01b376413f27869bd1c59fc71b1de38 /sys/dev/vinum/vinumio.c
parent7d0e3c6f72ed07b9e446e7b7c64340824b57ba25 (diff)
Notes
Diffstat (limited to 'sys/dev/vinum/vinumio.c')
-rw-r--r--sys/dev/vinum/vinumio.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c
index ef2658de0554c..2fc55448b15b0 100644
--- a/sys/dev/vinum/vinumio.c
+++ b/sys/dev/vinum/vinumio.c
@@ -33,7 +33,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumio.c,v 1.29 1999/06/24 08:55:02 grog Exp $
+ * $Id: vinumio.c,v 1.24 1999/03/23 02:00:52 grog Exp grog $
*/
#include <dev/vinum/vinumhdr.h>
@@ -193,11 +193,10 @@ init_drive(struct drive *drive, int verbose)
void
close_drive(struct drive *drive)
{
- if (drive->vp) {
- LOCKDRIVE(drive); /* keep the daemon out */
+ LOCKDRIVE(drive); /* keep the daemon out */
+ if (drive->vp)
close_locked_drive(drive); /* and close it */
- unlockdrive(drive);
- }
+ unlockdrive(drive);
}
/*
@@ -272,7 +271,7 @@ driveio(struct drive *drive, char *buf, size_t length, off_t offset, int flag)
int len = min(length, MAXBSIZE); /* maximum block device transfer is MAXBSIZE */
bp = geteblk(len); /* get a buffer header */
- bp->b_flags = flag; /* get locked */
+ bp->b_flags = flag;
bp->b_dev = drive->vp->v_un.vu_specinfo->si_rdev; /* device */
bp->b_blkno = offset / drive->partinfo.disklab->d_secsize; /* block number */
bp->b_data = buf;