From 8f9ae1255deec72bc9051c516d3bf45c8e16d5ec Mon Sep 17 00:00:00 2001 From: Himanshu Madhani Date: Thu, 1 Aug 2019 15:54:24 -0400 Subject: [PATCH 004/124] [scsi] scsi: qla2xxx: Fix N2N target discovery with Local loop Message-id: <20190801155618.12650-5-hmadhani@redhat.com> Patchwork-id: 267782 O-Subject: [RHEL 7.8 e-stor PATCH 004/118] scsi: qla2xxx: Fix N2N target discovery with Local loop Bugzilla: 1729270 RH-Acked-by: Jarod Wilson RH-Acked-by: Tony Camuso From: Himanshu Madhani Bugzilla 1729270 This patch fixes the issue where Dell-EMC Target will fail to discover LUNs if domain and area of port ID is not same as adapter's. Signed-off-by: Himanshu Madhani Signed-off-by: Martin K. Petersen (cherry picked from commit 7f147f9bfd44d048e22e8c65877d2b5590e6cf3d) Signed-off-by: Himanshu Madhani Signed-off-by: Jan Stancek --- drivers/scsi/qla2xxx/qla_init.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index b72657dad815..a047c0c0500f 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -4974,11 +4974,6 @@ qla2x00_configure_local_loop(scsi_qla_host_t *vha) if ((domain & 0xf0) == 0xf0) continue; - /* Bypass if not same domain and area of adapter. */ - if (area && domain && - (area != vha->d_id.b.area || domain != vha->d_id.b.domain)) - continue; - /* Bypass invalid local loop ID. */ if (loop_id > LAST_LOCAL_LOOP_ID) continue; -- 2.13.6