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

Commit 723cd772 authored by Brian King's avatar Brian King Committed by Martin K. Petersen
Browse files

scsi: ipr: Set no_report_opcodes for RAID arrays



Since ipr RAID arrays do not support the MAINTENANCE_IN /
MI_REPORT_SUPPORTED_OPERATION_CODES, set no_report_opcodes to prevent it
from being sent.

Signed-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 71eb2ac5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4945,6 +4945,7 @@ static int ipr_slave_configure(struct scsi_device *sdev)
		}
		if (ipr_is_vset_device(res)) {
			sdev->scsi_level = SCSI_SPC_3;
			sdev->no_report_opcodes = 1;
			blk_queue_rq_timeout(sdev->request_queue,
					     IPR_VSET_RW_TIMEOUT);
			blk_queue_max_hw_sectors(sdev->request_queue, IPR_VSET_MAX_SECTORS);