ipr: Don't set NO_ULEN_CHK bit when resource is a vset.
authorGabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Tue, 3 Nov 2015 18:26:07 +0000 (16:26 -0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Nov 2015 00:31:01 +0000 (19:31 -0500)
commit4f92d01a642d27716f60cdab0fd3c527fb7cfb0f
tree20ca6db4fb8ef5fc9bb16d82ccba849f2a02fa49
parentf41f1d994e0e2e0fab29c6f3f9c77350f1769166
ipr: Don't set NO_ULEN_CHK bit when resource is a vset.

According to the IPR specification, Inhibit Underlength Checking bit
must be disabled when issuing commands to vsets.  Enabling it in this
case might cause SCSI commands to fail with an Illegal Request, so make
sure we keep this bit cleared when resource is a vset.

Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c