]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] fix check of PQ and PDT bits for WLUNs
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 21 Aug 2008 20:14:14 +0000 (15:14 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 29 Aug 2008 14:19:11 +0000 (09:19 -0500)
commit01b291bd66564b4bd826326af6bd0b6d17e99439
tree89ba1f339a68827c1ea0e434629759a9252b0a69
parentbb0003c1e189d5766b6b39299b08c690c985c4dc
[SCSI] fix check of PQ and PDT bits for WLUNs

For IBM z series certain LUNs can no longer be accessed.

This is because kernel version 2.6.19 a check was introduced not to
create a generic SCSI device for devices that return PQ=1 and
PDT=0x1f. For WLUNs (see SAM-3, p. 41ff) generic SCSI devices should
be created unconditionally without looking at the PQ bit, so add a
check for WLUNs in with this test.

Acked-by: Martin Petermann <martin@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_scan.c
include/scsi/scsi.h