[SCSI] libiscsi: fix cmds_max setting
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 21 May 2008 20:54:17 +0000 (15:54 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:21 +0000 (08:22 -0500)
commit3cf7b233ffc45d4fc381221f74d24f10e692c4ea
treec1bd741628e1e75cf07fa5c47fbdaa9e9f9236ee
parent88dfd340b9dece8fcaa1a2d4c782338926c017f7
[SCSI] libiscsi: fix cmds_max setting

Drivers expect that the cmds_max value they pass to the iscsi layer
is the max scsi commands  + mgmt tasks. This patch implements that
and fixes some checks for nr cmd limits.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h