Module Name: src Committed By: mlelstv Date: Sun Jun 5 05:29:01 UTC 2016
Modified Files: src/sys/dev/iscsi: iscsi_main.c Log Message: Keep 1 CCB free for private use. This avoids frequent recovery in scsipi when resources appear to be exhausted. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/dev/iscsi/iscsi_main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/iscsi/iscsi_main.c diff -u src/sys/dev/iscsi/iscsi_main.c:1.21 src/sys/dev/iscsi/iscsi_main.c:1.22 --- src/sys/dev/iscsi/iscsi_main.c:1.21 Sun Jun 5 04:53:22 2016 +++ src/sys/dev/iscsi/iscsi_main.c Sun Jun 5 05:29:01 2016 @@ -355,8 +355,8 @@ map_session(session_t *session, device_t adapt->adapt_nchannels = 1; adapt->adapt_request = iscsi_scsipi_request; adapt->adapt_minphys = iscsi_minphys; - adapt->adapt_openings = CCBS_PER_SESSION; - adapt->adapt_max_periph = CCBS_PER_SESSION; + adapt->adapt_openings = CCBS_PER_SESSION - 1; + adapt->adapt_max_periph = CCBS_PER_SESSION - 1; /* * Fill in the scsipi_channel.