Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi_dh_alua: Add new blacklist flag 'BLIST_SYNC_ALUA'

Add a new blacklist flag BLIST_SYNC_ALUA to instruct the
alua device handler to use synchronous command submission
for ALUA commands.

Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Hannes Reinecke and committed by
Martin K. Petersen
851cde99 00642a1b

+9
+2
drivers/scsi/device_handler/scsi_dh_alua.c
··· 366 366 /* port group has changed. Update to new port group */ 367 367 rcu_assign_pointer(h->pg, pg); 368 368 } 369 + if (sdev->synchronous_alua) 370 + pg->flags |= ALUA_SYNC_STPG; 369 371 alua_rtpg_queue(h->pg, sdev, NULL); 370 372 spin_unlock(&h->pg_lock); 371 373
+2
drivers/scsi/scsi_devinfo.c
··· 220 220 {"NAKAMICH", "MJ-5.16S", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 221 221 {"NEC", "PD-1 ODX654P", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 222 222 {"NEC", "iStorage", NULL, BLIST_REPORTLUN2}, 223 + {"NETAPP", "LUN C-Mode", NULL, BLIST_SYNC_ALUA}, 224 + {"NETAPP", "INF-01-00", NULL, BLIST_SYNC_ALUA}, 223 225 {"NRC", "MBR-7", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 224 226 {"NRC", "MBR-7.4", NULL, BLIST_FORCELUN | BLIST_SINGLELUN}, 225 227 {"PIONEER", "CD-ROM DRM-600", NULL, BLIST_FORCELUN | BLIST_SINGLELUN},
+3
drivers/scsi/scsi_scan.c
··· 964 964 if (*bflags & BLIST_NO_DIF) 965 965 sdev->no_dif = 1; 966 966 967 + if (*bflags & BLIST_SYNC_ALUA) 968 + sdev->synchronous_alua = 1; 969 + 967 970 sdev->eh_timeout = SCSI_DEFAULT_EH_TIMEOUT; 968 971 969 972 if (*bflags & BLIST_TRY_VPD_PAGES)
+1
include/scsi/scsi_device.h
··· 176 176 unsigned no_dif:1; /* T10 PI (DIF) should be disabled */ 177 177 unsigned broken_fua:1; /* Don't set FUA bit */ 178 178 unsigned lun_in_cdb:1; /* Store LUN bits in CDB[1] */ 179 + unsigned synchronous_alua:1; /* Synchronous ALUA commands */ 179 180 180 181 atomic_t disk_events_disable_depth; /* disable depth for disk events */ 181 182
+1
include/scsi/scsi_devinfo.h
··· 37 37 #define BLIST_TRY_VPD_PAGES 0x10000000 /* Attempt to read VPD pages */ 38 38 #define BLIST_NO_RSOC 0x20000000 /* don't try to issue RSOC */ 39 39 #define BLIST_MAX_1024 0x40000000 /* maximum 1024 sector cdb length */ 40 + #define BLIST_SYNC_ALUA 0x80000000 /* Synchronous ALUA commands */ 40 41 41 42 #endif