Blame SOURCES/0022-spapr-Reduce-advertised-max-LUNs-for-spapr_vscsi.patch

383d26
From ee04d835a5a44c7f2ca4cc42f5603879b64a9ebd Mon Sep 17 00:00:00 2001
383d26
From: David Gibson <dgibson@redhat.com>
383d26
Date: Wed, 9 Sep 2015 02:03:04 +0200
383d26
Subject: spapr: Reduce advertised max LUNs for spapr_vscsi
383d26
383d26
Patchwork-id: 67711
383d26
O-Subject: [RHEL7.2 qemu-kvm-rhev PATCH] spapr: Reduce advertised max LUNs for spapr_vscsi
383d26
Bugzilla: 1260464
383d26
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
383d26
RH-Acked-by: Thomas Huth <thuth@redhat.com>
383d26
383d26
The implementation of the PAPR paravirtual SCSI adapter currently
383d26
allows up to 32 LUNs (max_lun == 31).  However the adapter isn't really
383d26
designed to support lots of devices - the PowerVM implementation only
383d26
ever puts one disk per vSCSI controller.
383d26
383d26
More specifically, the Linux guest side vscsi driver (the only one we
383d26
really care about) is hardcoded to allow a maximum of 8 LUNs.
383d26
383d26
So, reduce the number of LUNs on the qemu side to 8, so we don't
383d26
falsely advertise that more LUNs can work.
383d26
383d26
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
383d26
383d26
Signed-off-by: David Gibson <dgibson@redhat.com>
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
(cherry picked from commit 6c166e382c232ba4e527b4fc5ca9fdea151498d9)
383d26
(cherry picked from commit 9eadef5817e22891efc509ff1af6f0d14545b2b0)
383d26
(cherry picked from commit dea0aabfbf919f28cf04db7343c42dc423fdf79b)
383d26
(cherry picked from commit 6aef4d0da0a410a8224dec70743c32d4e10eee8b)
383d26
(cherry picked from commit 50fdb5661adeeb0867bbaae8cd9ac55d71499231)
383d26
---
383d26
 hw/scsi/spapr_vscsi.c | 2 +-
383d26
 1 file changed, 1 insertion(+), 1 deletion(-)
383d26
383d26
diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c
383d26
index a9e49c7..3a06b2f 100644
383d26
--- a/hw/scsi/spapr_vscsi.c
383d26
+++ b/hw/scsi/spapr_vscsi.c
383d26
@@ -1178,7 +1178,7 @@ static const struct SCSIBusInfo vscsi_scsi_info = {
383d26
     .tcq = true,
383d26
     .max_channel = 7, /* logical unit addressing format */
383d26
     .max_target = 63,
383d26
-    .max_lun = 31,
383d26
+    .max_lun = 7,
383d26
 
383d26
     .transfer_data = vscsi_transfer_data,
383d26
     .complete = vscsi_command_complete,
383d26
-- 
383d26
1.8.3.1
383d26