Print this page
NEX-4592 race condition allows FC initiator LUN offline hotplug handler deadlocks with FMA faulting leaf vdev between LDI and ZFS
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/sunldi_impl.h
          +++ new/usr/src/uts/common/sys/sunldi_impl.h
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55  /*
  56   56   * Obsolete LDI event interfaces are available for now but are deprecated and a
  57   57   * warning will be issued to consumers.
  58   58   */
  59   59  #define LDI_OBSOLETE_EVENT      1
  60   60  
  61   61  /*
  62   62   * Flag for LDI handle's lh_flags field
  63   63   */
  64   64  #define LH_FLAGS_NOTIFY 0x0001          /* invoked in context of a notify */
       65 +#define LH_FLAGS_NOTIFY_NOTIFY 0x0002   /* processed once in notify loop */
       66 +#define LH_FLAGS_NOTIFY_FINALIZE 0x0004 /* processed once in finalize loop */
  65   67  
  66   68  /*
  67   69   * LDI initialization function
  68   70   */
  69   71  void ldi_init(void);
  70   72  
  71   73  /*
  72   74   * LDI streams linking interfaces
  73   75   */
  74   76  extern int ldi_mlink_lh(vnode_t *, int, intptr_t, cred_t *, int *);
↓ open down ↓ 150 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX