diff options
| author | mlelstv <mlelstv@NetBSD.org> | 2016-06-05 05:29:01 +0000 |
|---|---|---|
| committer | mlelstv <mlelstv@NetBSD.org> | 2016-06-05 05:29:01 +0000 |
| commit | e4f76eaef4dd0a573c707bf882963524f15b6bcb (patch) | |
| tree | baf04eb93bc0c0bb884cc77234361c54fd420633 /sys/dev | |
| parent | 65c82766edf41a43ecb4c7af9192e28a61feb052 (diff) | |
Keep 1 CCB free for private use. This avoids frequent recovery in scsipi when
resources appear to be exhausted.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/iscsi/iscsi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iscsi/iscsi_main.c b/sys/dev/iscsi/iscsi_main.c index 7535d031871..a35916ce9b9 100644 --- a/sys/dev/iscsi/iscsi_main.c +++ b/sys/dev/iscsi/iscsi_main.c @@ -355,8 +355,8 @@ map_session(session_t *session, device_t dev) 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. |
