Module Name: src Committed By: mlelstv Date: Wed Jun 15 04:30:30 UTC 2016
Modified Files: src/sys/dev/iscsi: iscsi.h iscsi_globals.h iscsi_ioctl.c iscsi_main.c iscsi_rcv.c iscsi_send.c iscsi_utils.c Log Message: Remove throttling code, instead signal scsipi layer to reduce the openings and retry the command. Start with a small openings number and let scsipi request to grow it up to the current send window. Adjust ccb and pdu counts to avoid ressource shortages. These are still very ad-hoc numbers, but seem to be sufficient for a Gigabit link. Use separate condvar for PDU pool and add counter to help debugging. Revert setting PDU disposition to UNUSED before freeing. free_pdu uses this as a flag to detect already returned PDUs. Add reference counter for open commands to defer unmapping a session that would lead to crashes in scsipi. Move session cleanup to cleanup thread. Use get_sernum to retrieve current serial number where possible and make it check for immediate commands itself. Adjust debug output. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/dev/iscsi/iscsi.h cvs rdiff -u -r1.20 -r1.21 src/sys/dev/iscsi/iscsi_globals.h \ src/sys/dev/iscsi/iscsi_rcv.c src/sys/dev/iscsi/iscsi_utils.c cvs rdiff -u -r1.21 -r1.22 src/sys/dev/iscsi/iscsi_ioctl.c cvs rdiff -u -r1.22 -r1.23 src/sys/dev/iscsi/iscsi_main.c cvs rdiff -u -r1.30 -r1.31 src/sys/dev/iscsi/iscsi_send.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.