]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: qla2xxx: Fix N2N target discovery with Local loop
authorHimanshu Madhani <hmadhani@marvell.com>
Fri, 25 Jan 2019 07:23:39 +0000 (23:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 02:41:15 +0000 (21:41 -0500)
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 <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c

index 364bb52ed2a66ed4f65dc32422cdec2801a25094..58b4bfe01202716841c7d300b1393bda554181aa 100644 (file)
@@ -5046,11 +5046,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;