aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorbrking@us.ibm.com <brking@us.ibm.com>2005-11-01 18:01:01 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-11-06 14:02:20 -0500
commit0726ce26104671e3072d90b9c697c253974e823d (patch)
tree2c9a1091fee61023da9505d1384c3a18913693fc /drivers
parentd0ad6f50399abc990adc4653c1eda5932b8adb52 (diff)
[SCSI] ipr: Prevent upper layer driver binding
Set the no_uld_attach for devices ipr does not want upper layer drivers to attach to. These devices are only reported for RAID management and only sg should be used to talk to them. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/ipr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index d47df3f9d226..63d01e6394a2 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -2789,8 +2789,10 @@ static int ipr_slave_configure(struct scsi_device *sdev)
2789 if (res) { 2789 if (res) {
2790 if (ipr_is_af_dasd_device(res)) 2790 if (ipr_is_af_dasd_device(res))
2791 sdev->type = TYPE_RAID; 2791 sdev->type = TYPE_RAID;
2792 if (ipr_is_af_dasd_device(res) || ipr_is_ioa_resource(res)) 2792 if (ipr_is_af_dasd_device(res) || ipr_is_ioa_resource(res)) {
2793 sdev->scsi_level = 4; 2793 sdev->scsi_level = 4;
2794 sdev->no_uld_attach = 1;
2795 }
2794 if (ipr_is_vset_device(res)) { 2796 if (ipr_is_vset_device(res)) {
2795 sdev->timeout = IPR_VSET_RW_TIMEOUT; 2797 sdev->timeout = IPR_VSET_RW_TIMEOUT;
2796 blk_queue_max_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS); 2798 blk_queue_max_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);