Print this page
4781 sd shouldn't abuse ddi_get_time(9f)
Reviewed by: Richard Elling <richard.elling@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/targets/sddef.h
          +++ new/usr/src/uts/common/sys/scsi/targets/sddef.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   */
  24   24  /*
  25   25   * Copyright 2011 cyril.galibern@opensvc.com
       26 + * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  26   27   */
  27   28  
  28   29  #ifndef _SYS_SCSI_TARGETS_SDDEF_H
  29   30  #define _SYS_SCSI_TARGETS_SDDEF_H
  30   31  
  31   32  #include <sys/dktp/fdisk.h>
  32   33  #include <sys/note.h>
  33   34  #include <sys/mhd.h>
  34   35  #include <sys/cmlb.h>
  35   36  
↓ open down ↓ 473 lines elided ↑ open up ↑
 509  510          timeout_id_t    un_startstop_timeid;
 510  511  
 511  512          /* Timeout callback handle for SD_PATH_DIRECT_PRIORITY cmd restarts */
 512  513          timeout_id_t    un_direct_priority_timeid;
 513  514  
 514  515          /* TRAN_FATAL_ERROR count. Cleared by TRAN_ACCEPT from scsi_transport */
 515  516          ulong_t         un_tran_fatal_count;
 516  517  
 517  518          timeout_id_t    un_retry_timeid;
 518  519  
 519      -        time_t          un_pm_idle_time;
      520 +        hrtime_t        un_pm_idle_time;
 520  521          timeout_id_t    un_pm_idle_timeid;
 521  522  
 522  523          /*
 523  524           * Count to determine if a Sonoma controller is in the process of
 524  525           * failing over, and how many I/O's are failed with the 05/94/01
 525  526           * sense code.
 526  527           */
 527  528          uint_t          un_sonoma_failure_count;
 528  529  
 529  530          /*
↓ open down ↓ 1889 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX