diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2014-12-02 13:47:46 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-12-15 07:34:29 -0500 |
commit | 60654e250cd32d4315401a468ea779dfe5aed2a9 (patch) | |
tree | 1174bfe8bb1ad0fdc7ccd0385b76b8b65e052dc5 | |
parent | f688f96d86794600686e2c11745ee3ffa3e6554e (diff) |
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>
-rw-r--r-- | drivers/scsi/ipr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index beee3843e420..df4e27cd996a 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -4713,6 +4713,7 @@ static int ipr_slave_configure(struct scsi_device *sdev) | |||
4713 | sdev->no_uld_attach = 1; | 4713 | sdev->no_uld_attach = 1; |
4714 | } | 4714 | } |
4715 | if (ipr_is_vset_device(res)) { | 4715 | if (ipr_is_vset_device(res)) { |
4716 | sdev->scsi_level = SCSI_SPC_3; | ||
4716 | blk_queue_rq_timeout(sdev->request_queue, | 4717 | blk_queue_rq_timeout(sdev->request_queue, |
4717 | IPR_VSET_RW_TIMEOUT); | 4718 | IPR_VSET_RW_TIMEOUT); |
4718 | blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS); | 4719 | blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS); |