summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2017-08-18 16:17:32 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2017-08-22 22:23:36 -0400
commit723cd772fde2344a9810eeaf5106787d535ec4a4 (patch)
treede5d22b0e2b83684c14edfe740aee73eafa652e9 /drivers/scsi/ipr.c
parent71eb2ac58aa52f7948deda4d9a75754b6898e5c9 (diff)
downloadlinux-723cd772fde2344a9810eeaf5106787d535ec4a4.tar.gz
linux-723cd772fde2344a9810eeaf5106787d535ec4a4.tar.bz2
linux-723cd772fde2344a9810eeaf5106787d535ec4a4.zip
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: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r--drivers/scsi/ipr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index da5bdbdcce52..f838bd73befa 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -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);