diff options
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r-- | drivers/scsi/ipr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 62bbe31dd47b..37158eab3c89 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -4353,8 +4353,6 @@ static int ipr_slave_configure(struct scsi_device *sdev) | |||
4353 | IPR_VSET_RW_TIMEOUT); | 4353 | IPR_VSET_RW_TIMEOUT); |
4354 | blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS); | 4354 | blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS); |
4355 | } | 4355 | } |
4356 | if (ipr_is_vset_device(res) || ipr_is_scsi_disk(res)) | ||
4357 | sdev->allow_restart = 1; | ||
4358 | if (ipr_is_gata(res) && res->sata_port) | 4356 | if (ipr_is_gata(res) && res->sata_port) |
4359 | ap = res->sata_port->ap; | 4357 | ap = res->sata_port->ap; |
4360 | spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags); | 4358 | spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags); |
@@ -6771,7 +6769,8 @@ static int ipr_init_res_table(struct ipr_cmnd *ipr_cmd) | |||
6771 | list_move_tail(&res->queue, &ioa_cfg->used_res_q); | 6769 | list_move_tail(&res->queue, &ioa_cfg->used_res_q); |
6772 | ipr_init_res_entry(res, &cfgtew); | 6770 | ipr_init_res_entry(res, &cfgtew); |
6773 | res->add_to_ml = 1; | 6771 | res->add_to_ml = 1; |
6774 | } | 6772 | } else if (res->sdev && (ipr_is_vset_device(res) || ipr_is_scsi_disk(res))) |
6773 | res->sdev->allow_restart = 1; | ||
6775 | 6774 | ||
6776 | if (found) | 6775 | if (found) |
6777 | ipr_update_res_entry(res, &cfgtew); | 6776 | ipr_update_res_entry(res, &cfgtew); |