[SCSI] Workaround for disks that report bad optimal transfer length
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Apr 2013 01:19:47 +0000 (21:19 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Jun 2013 20:00:10 +0000 (13:00 -0700)
commit56f2a8016e0ab54de8daaac3df4712cad0fcef2e
tree5464d103f595effb8c784d22e8f77a0243a75b41
parentc3a634bf78242177fba9c85deb709e7b63ed0ef1
[SCSI] Workaround for disks that report bad optimal transfer length

Not all disks fill out the VPD pages correctly. Add a blacklist flag
that allows us ignore the SBC-3 VPD pages for a given device. The
BLIST_SKIP_VPD_PAGES flag triggers our existing skip_vpd_pages
scsi_device parameter to bypass VPD scanning.

Also blacklist the offending Seagate drive model.

Reported-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_devinfo.c
drivers/scsi/scsi_scan.c
include/scsi/scsi_devinfo.h