Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/targets/sgendef.h
          +++ new/usr/src/uts/common/sys/scsi/targets/sgendef.h
↓ open down ↓ 148 lines elided ↑ open up ↑
 149  149          kmutex_t sdb_lock;                      /* protects this structure */
 150  150          sgen_inq_node_t *sdb_inq_nodes;         /* inquiry binding nodes */
 151  151          sgen_type_node_t *sdb_type_nodes;       /* dev-type binding nodes */
 152  152  };
 153  153  
 154  154  #define SGEN_ESTIMATED_NUM_DEVS 4               /* for soft-state allocation */
 155  155  
 156  156  /*
 157  157   * Time to wait before a retry for commands returning Busy Status
 158  158   */
 159      -#define SGEN_BSY_TIMEOUT        (drv_usectohz(5 * 1000000))
      159 +#define SGEN_BSY_TIMEOUT        drv_sectohz(5)
 160  160  #define SGEN_IO_TIME            60              /* seconds */
 161  161  
 162  162  /*
 163  163   * sgen_callback action codes
 164  164   */
 165  165  #define COMMAND_DONE            0       /* command completed, biodone it */
 166  166  #define COMMAND_DONE_ERROR      1       /* command completed, indicate error */
 167  167  #define FETCH_SENSE             2       /* CHECK CONDITION, so initiate sense */
 168  168                                          /* fetch */
 169  169  
 170  170  #define SET_BP_ERROR(bp, err)   bioerror(bp, err);
 171  171  
 172  172  #endif /* defined(_KERNEL) */
 173  173  
 174  174  #ifdef  __cplusplus
 175  175  }
 176  176  #endif
 177  177  
 178  178  #endif  /* _SYS_SCSI_TARGETS_SGENDEF_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX