]> git.baikalelectronics.ru Git - kernel.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)
commit2cb70bb354de7fd609dd5d342e5e5e27ba274a74
tree89ba1f339a68827c1ea0e434629759a9252b0a69
parent47ba9c54426a21aab54f34f7982ce769e8b9f00a
[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