From d5fdb124e1b71ed407a82668653e5e8835e9e9e3 Mon Sep 17 00:00:00 2001 From: grog Date: Thu, 24 Jun 1999 08:53:14 +0000 Subject: free_drive: Use new function close_locked_drive to close the drive. --- sys/dev/vinum/vinumconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/vinum/vinumconfig.c b/sys/dev/vinum/vinumconfig.c index 339c310..67d8407 100644 --- a/sys/dev/vinum/vinumconfig.c +++ b/sys/dev/vinum/vinumconfig.c @@ -589,8 +589,8 @@ free_drive(struct drive *drive) { if (drive->state > drive_referenced) { /* real drive */ LOCKDRIVE(drive); - if (drive->vp != NULL) /* device open */ - vn_close(drive->vp, FREAD | FWRITE, FSCRED, drive->p); + if (drive->vp) /* it's open, */ + close_locked_drive(drive); /* close it */ if (drive->freelist) Free(drive->freelist); bzero(drive, sizeof(struct drive)); /* this also sets drive_unallocated */ -- cgit v1.1