Print this page
XXXX don't fail device detach when it's physically removed

@@ -16,15 +16,20 @@
  * fields enclosed by brackets "[]" replaced with your own identifying
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
+
 /*
  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
+ */
+
+/*
  * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
  * Copyright 2016 Joyent, Inc.
  * Copyright (c) 2016 by Delphix. All rights reserved.
+ * Copyright 2018 Nexenta Systems, Inc.
  */
 
 #ifndef _SYS_DDI_IMPLDEFS_H
 #define _SYS_DDI_IMPLDEFS_H
 

@@ -208,10 +213,11 @@
 
         uint_t          devi_state;             /* device/bus state flags */
                                                 /* see below for definitions */
         kcondvar_t      devi_cv;                /* cv */
         int             devi_ref;               /* reference count */
+        int             devi_gone;              /* devi gone, force clean */
 
         dacf_rsrvlist_t *devi_dacf_tasks;       /* dacf reservation queue */
 
         ddi_node_class_t devi_node_class;       /* Node class */
         int             devi_node_attributes;   /* Node attributes: See below */