-
Notifications
You must be signed in to change notification settings - Fork 770
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4128 disks in zpools never go away when pulled
Reviewed by: Keith Wesolowski <[email protected]> Reviewed by: Bill Pijewski <[email protected]> Reviewed by: Marcel Telka <[email protected]> Approved by: Eric Schrock <[email protected]>
- Loading branch information
Showing
3 changed files
with
238 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright 2012 Nexenta Systems, Inc. All rights reserved. | ||
* Copyright 2012 Garrett D'Amore <[email protected]>. All rights reserved. | ||
* Copyright (c) 2013, Joyent, Inc. All rights reserved. | ||
*/ | ||
|
||
#include <sys/note.h> | ||
|
@@ -5890,6 +5891,13 @@ devi_detach_node(dev_info_t *dip, uint_t flags) | |
} | ||
} | ||
|
||
/* | ||
* dv_mknod places a hold on the dev_info_t for each devfs node | ||
* created. If we're to succeed in detaching this device, we must | ||
* first release all outstanding references held by devfs. | ||
*/ | ||
(void) devfs_clean(pdip, NULL, DV_CLEAN_FORCE); | ||
|
||
if (i_ddi_detachchild(dip, flags) != DDI_SUCCESS) { | ||
if (flags & NDI_DEVI_OFFLINE) { | ||
RIO_DEBUG((CE_NOTE, "devi_detach_node: offline failed." | ||
|