Print this page
4780 comstar iSCSI target shouldn't abuse ddi_get_time(9f)
Reviewed by: Eric Diven <eric.diven@delphix.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/idm/idm_impl.h
          +++ new/usr/src/uts/common/sys/idm/idm_impl.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  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) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   */
  24   24  /*
  25      - * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
       25 + * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  26   26   */
  27   27  
  28   28  #ifndef _IDM_IMPL_H_
  29   29  #define _IDM_IMPL_H_
  30   30  
  31   31  #ifdef  __cplusplus
  32   32  extern "C" {
  33   33  #endif
  34   34  
  35   35  #include <sys/avl.h>
↓ open down ↓ 334 lines elided ↑ open up ↑
 370  370           * idm_sorecv_scsidata() currently.
 371  371           */
 372  372          struct iovec    isp_iov[PDU_MAX_IOVLEN];
 373  373          int             isp_iovlen;
 374  374          idm_buf_t       *isp_sorx_buf;
 375  375  
 376  376          /* Implementation data for idm_pdu_alloc and sorx PDU cache */
 377  377          uint32_t        isp_flags;
 378  378          uint_t          isp_hdrbuflen;
 379  379          uint_t          isp_databuflen;
 380      -        time_t          isp_queue_time;
      380 +        hrtime_t        isp_queue_time;
 381  381  
 382  382          /* Taskq dispatching state for deferred PDU */
 383  383          taskq_ent_t     isp_tqent;
 384  384  } idm_pdu_t;
 385  385  
 386  386  /*
 387  387   * This "generic" object is used when removing an item from the ic_tx_list
 388  388   * in order to determine whether it's an idm_pdu_t or an idm_buf_t
 389  389   */
 390  390  
↓ open down ↓ 149 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX