Print this page
re #13365 rb4427 - pppt "mutex_enter: bad mutex" panic (son of 8564)
re #8564, rb4224 "mutex_enter: bad mutex" panic when under heavy load
re #12375 rb4141 Create ALUA Support on NexentaStor; Failover causes loss of storage

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
          +++ new/usr/src/uts/common/io/comstar/port/pppt/pppt_msg.c
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11   * and limitations under the License.
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  23      - * Copyright 2013, Nexenta Systems, Inc. All rights reserved.
       24 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #include <sys/cpuvar.h>
  27   28  #include <sys/types.h>
  28   29  #include <sys/conf.h>
  29   30  #include <sys/file.h>
  30   31  #include <sys/ddi.h>
  31   32  #include <sys/sunddi.h>
  32   33  #include <sys/modctl.h>
  33   34  #include <sys/sysmacros.h>
↓ open down ↓ 290 lines elided ↑ open up ↑
 324  325                  stmf_ic_msg_free(msg);
 325  326                  PPPT_INC_STAT(es_scmd_stask_alloc_fail);
 326  327                  return;
 327  328          }
 328  329  
 329  330          task = ptask->pt_stmf_task;
 330  331          /* task_port_private reference is a real reference. */
 331  332          (void) pppt_task_hold(ptask);
 332  333          task->task_port_private = ptask;
 333  334          task->task_flags = scmd->icsc_task_flags;
 334      -        task->task_additional_flags = 0;
      335 +        task->task_additional_flags = TASK_AF_PPPT_TASK;
 335  336          task->task_priority = 0;
 336  337  
 337  338          /*
 338  339           * Set task->task_mgmt_function to TM_NONE for a normal SCSI task
 339  340           * or one of these values for a task management command:
 340  341           *
 341  342           * TM_ABORT_TASK ***
 342  343           * TM_ABORT_TASK_SET
 343  344           * TM_CLEAR_ACA
 344  345           * TM_CLEAR_TASK_SET
↓ open down ↓ 66 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX