Skip to content

Commit 60654e2

Browse files
bjking1Christoph Hellwig
authored andcommitted
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: Brian King <brking@linux.vnet.ibm.com> Reviewed-by: Wen Xiong<wenxiong@linux.vnet.ibm.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent f688f96 commit 60654e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/ipr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4713,6 +4713,7 @@ static int ipr_slave_configure(struct scsi_device *sdev)
47134713
sdev->no_uld_attach = 1;
47144714
}
47154715
if (ipr_is_vset_device(res)) {
4716+
sdev->scsi_level = SCSI_SPC_3;
47164717
blk_queue_rq_timeout(sdev->request_queue,
47174718
IPR_VSET_RW_TIMEOUT);
47184719
blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);

0 commit comments

Comments
 (0)