Skip to contentSkip to conversation

ipr: Set scsi_level correctly for disk arrays

PATCH RESEND Applied Brian King 4 participants 5 messages Dec 2, 2014 – Dec 15, 2014

Subsystems (2)
lore
Share & tools
lore

Brian King

author
#0 lore raw

PATCH RESEND 4/5 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.

---

 drivers/scsi/ipr.c |    1 +
 1 file changed, 1 insertion(+)
drivers/scsi/ipr.c renamed from drivers/scsi/ipr.c~ipr_array_scsi_level +1 -0
diff -puN drivers/scsi/ipr.c~ipr_array_scsi_level drivers/scsi/ipr.c
@@ -4740,6 +4740,7 @@ static int ipr_slave_configure(struct sc
 			sdev->no_uld_attach = 1;
 		}
 		if (ipr_is_vset_device(res)) {
+			sdev->scsi_level = SCSI_SPC_3;
 			blk_queue_rq_timeout(sdev->request_queue,
 					     IPR_VSET_RW_TIMEOUT);
 			blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);

_

Reviewed-by on v1 4/5
#1 lore raw

Thanks,
Wendy

Quoting Brian King <[email protected]>:

Quoted 23 lines

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

---

 drivers/scsi/ipr.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/scsi/ipr.c~ipr_array_scsi_level drivers/scsi/ipr.c
--- scsi-queue/drivers/scsi/ipr.c~ipr_array_scsi_level 2014-12-02
12:13:28.585275691 -0600
+++ scsi-queue-bjking1/drivers/scsi/ipr.c 2014-12-02 12:13:28.591275641 -0600

drivers/scsi/ipr.c renamed from drivers/scsi/ipr.c~ipr_array_scsi_level +1 -0
@@ -4740,6 +4740,7 @@ static int ipr_slave_configure(struct sc
 			sdev->no_uld_attach = 1;
 		}
 		if (ipr_is_vset_device(res)) {
+			sdev->scsi_level = SCSI_SPC_3;
 			blk_queue_rq_timeout(sdev->request_queue,
 					     IPR_VSET_RW_TIMEOUT);
 			blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);

_

author
#3 lore raw
Quoted 1 line · Christoph Hellwig

Do you want me to apply this patch ASAP while waiting for the kexec ACK?

Both patches 1 and 4 can be pulled in while we wait for Eric's ack.

Thanks,

Brian

Signature · 3 lines
Brian King
Power Linux I/O
IBM Linux Technology Center
#4 lore raw
Quoted 4 lines · Brian King
Quoted 1 line · Christoph Hellwig

Do you want me to apply this patch ASAP while waiting for the kexec ACK?

Both patches 1 and 4 can be pulled in while we wait for Eric's ack.

I've applied patches 1 and 4 to drivers-for-3.19.