Commit 84a2523b authored by Brian King's avatar Brian King Committed by James Bottomley

[PATCH] ipr: Set allow_restart for disk devices only

This fixes ipr to only allow eh initiated start_unit commands
following erp to disk devices.
Signed-off-by: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 9cc6aa54
......@@ -2844,8 +2844,8 @@ static int ipr_slave_configure(struct scsi_device *sdev)
sdev->scsi_level = 4;
if (ipr_is_vset_device(res))
sdev->timeout = IPR_VSET_RW_TIMEOUT;
sdev->allow_restart = 1;
if (IPR_IS_DASD_DEVICE(res->cfgte.std_inq_data))
sdev->allow_restart = 1;
scsi_adjust_queue_depth(sdev, 0, res->qdepth);
}
spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment