This disk_detach() should be pseudo_disk_detach().
This commit is contained in:
parent
e83e36d896
commit
feaabee0c2
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rf_netbsdkintf.c,v 1.188 2005/08/20 12:01:04 yamt Exp $ */
|
/* $NetBSD: rf_netbsdkintf.c,v 1.189 2005/09/24 22:51:55 oster Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -146,7 +146,7 @@
|
|||||||
***********************************************************/
|
***********************************************************/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.188 2005/08/20 12:01:04 yamt Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.189 2005/09/24 22:51:55 oster Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
@ -980,7 +980,7 @@ raidioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
|
|||||||
rs->sc_flags &= ~RAIDF_INITED;
|
rs->sc_flags &= ~RAIDF_INITED;
|
||||||
|
|
||||||
/* Detach the disk. */
|
/* Detach the disk. */
|
||||||
disk_detach(&rs->sc_dkdev);
|
pseudo_disk_detach(&rs->sc_dkdev);
|
||||||
|
|
||||||
raidunlock(rs);
|
raidunlock(rs);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user