diff options
Diffstat (limited to 'share/examples/scsi_target/scsi_target.c')
-rw-r--r-- | share/examples/scsi_target/scsi_target.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/examples/scsi_target/scsi_target.c b/share/examples/scsi_target/scsi_target.c index 0f0d6b8..09f6610 100644 --- a/share/examples/scsi_target/scsi_target.c +++ b/share/examples/scsi_target/scsi_target.c @@ -453,7 +453,10 @@ request_loop() /* Assume work function handled the exception */ if ((ccb_h->status & CAM_DEV_QFRZN) != 0) { - warnx("Queue frozen receiving CCB, releasing"); + if (debug) { + warnx("Queue frozen receiving CCB, " + "releasing"); + } rel_simq(); } @@ -819,7 +822,7 @@ get_ctio() /* Initialize CTIO, CTIO descr, and AIO */ ctio->ccb_h.func_code = XPT_CONT_TARGET_IO; ctio->ccb_h.retry_count = 2; - ctio->ccb_h.timeout = 5; + ctio->ccb_h.timeout = CAM_TIME_INFINITY; ctio->data_ptr = c_descr->buf; ctio->ccb_h.targ_descr = c_descr; c_descr->aiocb.aio_buf = c_descr->buf; |