From 4664e1b2f96c570d91686022d74c3248de776b37 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 22 Jan 2003 14:06:46 +0000 Subject: [PATCH] Make the arguments to d_close() match the arguments to d_open(), since otherwise the close operation is void, and the underlying device remains marked as being busy. Thanks to phk for finding this. MFC after: 3 days --- sys/dev/vinum/vinumio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index 0aef397d5e9..01c17047a00 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -218,7 +218,7 @@ close_locked_drive(struct drive *drive) * the queues, which spec_close() will try to * do. Get rid of them here first. */ - error = (*devsw(drive->dev)->d_close) (drive->dev, 0, 0, NULL); + error = (*devsw(drive->dev)->d_close) (drive->dev, FWRITE | FREAD, 0, NULL); drive->flags &= ~VF_OPEN; /* no longer open */ if (drive->lasterror == 0) drive->lasterror = error; -- 2.45.0