Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60654e25 authored by Brian King's avatar Brian King Committed by Christoph Hellwig
Browse files

ipr: set scsi_level correctly for disk arrays



Set the scsi_level correctly for disk arrays such
that things like the rotational field get set
properly by sd.c.

Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Reviewed-by: default avatarWen <Xiong&lt;wenxiong@linux.vnet.ibm.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent f688f96d
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -4713,6 +4713,7 @@ static int ipr_slave_configure(struct scsi_device *sdev)
			sdev->no_uld_attach = 1;
			sdev->no_uld_attach = 1;
		}
		}
		if (ipr_is_vset_device(res)) {
		if (ipr_is_vset_device(res)) {
			sdev->scsi_level = SCSI_SPC_3;
			blk_queue_rq_timeout(sdev->request_queue,
			blk_queue_rq_timeout(sdev->request_queue,
					     IPR_VSET_RW_TIMEOUT);
					     IPR_VSET_RW_TIMEOUT);
			blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);
			blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);