Bug #7813 ยป mpt_sas_instr.patch
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c | ||
---|---|---|
3216 | 3216 |
* Visible to the external world via the transport structure. |
3217 | 3217 |
*/ |
3218 | 3218 | |
3219 |
volatile int panic_repro = -1; |
|
3220 | ||
3219 | 3221 |
/* |
3220 | 3222 |
* Notes: |
3221 | 3223 |
* - transport the command to the addressed SCSI target/lun device |
... | ... | |
3285 | 3287 |
* m_tx_waitqtail, m_tx_waitq, m_tx_draining. |
3286 | 3288 |
*/ |
3287 | 3289 | |
3290 |
while (panic_repro >= 0 && cmd->cmd_extrqslen > 0) |
|
3291 |
delay(drv_usectohz(100000)); |
|
3292 | ||
3288 | 3293 |
if (mpt->m_doneq_thread_n) { |
3289 | 3294 |
if (mutex_tryenter(&mpt->m_mutex) != 0) { |
3290 | 3295 |
rval = mptsas_accept_txwq_and_pkt(mpt, cmd); |
... | ... | |
9307 | 9312 |
if (!taskq_member((taskq_t *)mpt->m_dr_taskq, curthread)) |
9308 | 9313 |
ddi_taskq_wait(mpt->m_dr_taskq); |
9309 | 9314 | |
9315 |
while (panic_repro == 0) |
|
9316 |
; |
|
9317 | ||
9310 | 9318 |
mutex_enter(&mpt->m_mutex); |
9311 | 9319 |
} |
9312 | 9320 |