diff options
author | joerg <joerg@FreeBSD.org> | 2003-01-22 14:06:46 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2003-01-22 14:06:46 +0000 |
commit | 4664e1b2f96c570d91686022d74c3248de776b37 (patch) | |
tree | 249c9c49b4d4254d75d314a1a9f8708695128ebf /sys/dev/vinum | |
parent | 7040970198bcc972fa661a70d284669437f28cc0 (diff) | |
download | FreeBSD-src-4664e1b2f96c570d91686022d74c3248de776b37.zip FreeBSD-src-4664e1b2f96c570d91686022d74c3248de776b37.tar.gz |
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
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r-- | sys/dev/vinum/vinumio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index 0aef397..01c1704 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; |