scsi: Do not set cmd_per_lun to 1 in the host template
authorHannes Reinecke <hare@suse.de>
Wed, 29 Apr 2015 06:57:34 +0000 (08:57 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 1 Jun 2015 01:06:28 +0000 (18:06 -0700)
'0' is now used as the default cmd_per_lun value,
so there's no need to explicitly set it to '1' in the
host template.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
40 files changed:
drivers/block/cciss_scsi.c
drivers/firewire/sbp2.c
drivers/s390/scsi/zfcp_scsi.c
drivers/scsi/NCR53c406a.c
drivers/scsi/a100u2w.c
drivers/scsi/aha152x.c
drivers/scsi/aha1542.c
drivers/scsi/aha1740.c
drivers/scsi/aha1740.h
drivers/scsi/aic94xx/aic94xx_init.c
drivers/scsi/arm/arxescsi.c
drivers/scsi/arm/cumana_2.c
drivers/scsi/arm/eesox.c
drivers/scsi/atp870u.c
drivers/scsi/atp870u.h
drivers/scsi/dpt_i2o.c
drivers/scsi/fdomain.c
drivers/scsi/imm.c
drivers/scsi/initio.c
drivers/scsi/isci/init.c
drivers/scsi/mac53c94.c
drivers/scsi/mvsas/mv_init.c
drivers/scsi/nsp32.c
drivers/scsi/pcmcia/nsp_cs.c
drivers/scsi/pcmcia/qlogic_stub.c
drivers/scsi/pcmcia/sym53c500_cs.c
drivers/scsi/pm8001/pm8001_init.c
drivers/scsi/ppa.c
drivers/scsi/ps3rom.c
drivers/scsi/qla1280.c
drivers/scsi/qlogicfas.c
drivers/scsi/qlogicpti.c
drivers/scsi/sym53c416.c
drivers/scsi/wd719x.c
drivers/scsi/wd719x.h
drivers/staging/rts5208/rtsx.c
drivers/usb/image/microtek.c
drivers/usb/storage/scsiglue.c
drivers/usb/storage/uas.c
include/linux/libata.h

index ecd845cd28d8d111a42bbb120dbf8d006f1a0340..1537302e56e3de1889d3069170dee2e55bfd73d5 100644 (file)
@@ -84,7 +84,6 @@ static struct scsi_host_template cciss_driver_template = {
        .show_info              = cciss_scsi_show_info,
        .queuecommand           = cciss_scsi_queue_command,
        .this_id                = 7,
-       .cmd_per_lun            = 1,
        .use_clustering         = DISABLE_CLUSTERING,
        /* Can't have eh_bus_reset_handler or eh_host_reset_handler for cciss */
        .eh_device_reset_handler= cciss_eh_device_reset_handler,
index c22606fe3d44bf06d273a657917a12fda4ce39de..6bac03999fd499d78bec4e1f476539051533faaa 100644 (file)
@@ -1611,7 +1611,6 @@ static struct scsi_host_template scsi_driver_template = {
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
        .use_clustering         = ENABLE_CLUSTERING,
-       .cmd_per_lun            = 1,
        .can_queue              = 1,
        .sdev_attrs             = sbp2_scsi_sysfs_attrs,
 };
index 75f4bfc2b98ad21570588844140bf6546701cc50..b3c6ff49103b851f6467da7ff1fcb361865e2698 100644 (file)
@@ -297,7 +297,6 @@ static struct scsi_host_template zfcp_scsi_host_template = {
                                     * ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2) * 8,
                                   /* GCD, adjusted later */
        .dma_boundary            = ZFCP_QDIO_SBALE_LEN - 1,
-       .cmd_per_lun             = 1,
        .use_clustering          = 1,
        .shost_attrs             = zfcp_sysfs_shost_attrs,
        .sdev_attrs              = zfcp_sysfs_sdev_attrs,
index 42c7161474f7b31ca4622f4ffe91ca4da333fb1e..6e110c630d2ce272d8b13480f91c4599af6774df 100644 (file)
@@ -1064,7 +1064,6 @@ static struct scsi_host_template driver_template =
      .can_queue                = 1                     /* can_queue */,        
      .this_id                  = 7                     /* SCSI ID of the chip */,
      .sg_tablesize             = 32                    /*SG_ALL*/ /*SG_NONE*/, 
-     .cmd_per_lun              = 1                     /* commands per lun */, 
      .unchecked_isa_dma        = 1                     /* unchecked_isa_dma */,
      .use_clustering           = ENABLE_CLUSTERING,
 };
index 7e33a61c1ba45ed91db2b0fe86d4385eaac1e762..cac6b37d7b1b77baf9225b5ee8fb441480a0704c 100644 (file)
@@ -1078,7 +1078,6 @@ static struct scsi_host_template inia100_template = {
        .can_queue              = 1,
        .this_id                = 1,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
 };
 
index e31c460a1335527e74816945dcb6ac9e35b6125b..f44d0487236e34d20622ff9840af68f5170b537c 100644 (file)
@@ -2922,7 +2922,6 @@ static struct scsi_host_template aha152x_driver_template = {
        .can_queue                      = 1,
        .this_id                        = 7,
        .sg_tablesize                   = SG_ALL,
-       .cmd_per_lun                    = 1,
        .use_clustering                 = DISABLE_CLUSTERING,
        .slave_alloc                    = aha152x_adjust_queue,
 };
index b95d2779f4679cba20908b86a92502b32ec33a06..5b8b2937a3fea85e6d69f02526158c659a182584 100644 (file)
@@ -950,7 +950,6 @@ static struct scsi_host_template driver_template = {
        .can_queue              = AHA1542_MAILBOXES, 
        .this_id                = 7,
        .sg_tablesize           = 16,
-       .cmd_per_lun            = 1,
        .unchecked_isa_dma      = 1, 
        .use_clustering         = ENABLE_CLUSTERING,
 };
index 31ace4bef8fe98492d47a7134f1192b2d17b6647..bad35ffc015d0e0d1364eb4a72e7eb5ccf284b8d 100644 (file)
@@ -544,7 +544,6 @@ static struct scsi_host_template aha1740_template = {
        .can_queue        = AHA1740_ECBS,
        .this_id          = 7,
        .sg_tablesize     = AHA1740_SCATTER,
-       .cmd_per_lun      = AHA1740_CMDLUN,
        .use_clustering   = ENABLE_CLUSTERING,
        .eh_abort_handler = aha1740_eh_abort_handler,
 };
index af23fd6bd7952575aedd7feacb1bf8392a1261ed..b0c5603461ca252d254f6deff18b9e45eba8c479 100644 (file)
@@ -149,6 +149,5 @@ struct ecb {                        /* Enhanced Control Block 6.1 */
 
 #define AHA1740_ECBS 32
 #define AHA1740_SCATTER 16
-#define AHA1740_CMDLUN 1
 
 #endif
index 02a2512b76a8ee540e0454f5384f37afbcf20dde..4b135cca42a1282c08c43791fab4767374f6b148 100644 (file)
@@ -65,7 +65,6 @@ static struct scsi_host_template aic94xx_sht = {
        .change_queue_depth     = sas_change_queue_depth,
        .bios_param             = sas_bios_param,
        .can_queue              = 1,
-       .cmd_per_lun            = 1,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
        .max_sectors            = SCSI_DEFAULT_MAX_SECTORS,
index 32d23212de48be5bbee9d6f5989f05f2fe0cf9be..3110736fd337096116e558334fc05660c8fd45d3 100644 (file)
@@ -245,7 +245,6 @@ static struct scsi_host_template arxescsi_template = {
        .can_queue                      = 0,
        .this_id                        = 7,
        .sg_tablesize                   = SG_ALL,
-       .cmd_per_lun                    = 1,
        .use_clustering                 = DISABLE_CLUSTERING,
        .proc_name                      = "arxescsi",
 };
index abc66f5263ec08988338f23b22d0e432529dd57e..faa1bee07c8ac0b08dfc9fa6c6a8b2a6bd9d8493 100644 (file)
@@ -367,7 +367,6 @@ static struct scsi_host_template cumanascsi2_template = {
        .this_id                        = 7,
        .sg_tablesize                   = SCSI_MAX_SG_CHAIN_SEGMENTS,
        .dma_boundary                   = IOMD_DMA_BOUNDARY,
-       .cmd_per_lun                    = 1,
        .use_clustering                 = DISABLE_CLUSTERING,
        .proc_name                      = "cumanascsi2",
 };
index 5bf3c0d134b47e3ed0b309e33b60192490ba820a..a8ad6880dd9145734a15dbd6ff0d9bd73d4b4213 100644 (file)
@@ -486,7 +486,6 @@ static struct scsi_host_template eesox_template = {
        .this_id                        = 7,
        .sg_tablesize                   = SCSI_MAX_SG_CHAIN_SEGMENTS,
        .dma_boundary                   = IOMD_DMA_BOUNDARY,
-       .cmd_per_lun                    = 1,
        .use_clustering                 = DISABLE_CLUSTERING,
        .proc_name                      = "eesox",
 };
index 0836433e3a2d5cc761edfb9f9bc2b39a3849459e..05301bc752eee7e4bd2580e4ba58717bb9622fb2 100644 (file)
@@ -3158,7 +3158,6 @@ static struct scsi_host_template atp870u_template = {
      .can_queue                = qcnt                  /* can_queue */,
      .this_id                  = 7                     /* SCSI ID */,
      .sg_tablesize             = ATP870U_SCATTER       /*SG_ALL*/ /*SG_NONE*/,
-     .cmd_per_lun              = ATP870U_CMDLUN                /* commands per lun */,
      .use_clustering           = ENABLE_CLUSTERING,
      .max_sectors              = ATP870U_MAX_SECTORS,
 };
index 62bae64a01c15d687afa5f043b78a117c7d84241..5cf62566ad4282422f4288605d8f6ac7a2469859 100644 (file)
@@ -10,7 +10,6 @@
 #define MAX_SENSE      14
 #define qcnt           32
 #define ATP870U_SCATTER        128
-#define ATP870U_CMDLUN         1
 
 #define MAX_ADAPTER    8
 #define MAX_SCSI_ID    16
index 2806cfbec2b9c885b90a18905d8edb9339ed421b..f35ed53adaac23ca14e82d886ce239cff0f63f50 100644 (file)
@@ -3562,7 +3562,6 @@ static struct scsi_host_template driver_template = {
        .slave_configure        = adpt_slave_configure,
        .can_queue              = MAX_TO_IOP_MESSAGES,
        .this_id                = 7,
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
 };
 
index fff682976c56202de49122628de392b35cfa737d..eefe14d453db077f487bc92c36d79f9843ae5cb4 100644 (file)
@@ -1764,7 +1764,6 @@ struct scsi_host_template fdomain_driver_template = {
        .can_queue              = 1,
        .this_id                = 6,
        .sg_tablesize           = 64,
-       .cmd_per_lun            = 1,
        .use_clustering         = DISABLE_CLUSTERING,
 };
 
index 89a8266560d0ebc2ecf44bb33f136b8cebb64ae9..4e1a632ccf162ea52365b84e71aab19b44619280 100644 (file)
@@ -1109,7 +1109,6 @@ static struct scsi_host_template imm_template = {
        .bios_param             = imm_biosparam,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
        .can_queue              = 1,
        .slave_alloc            = imm_adjust_queue,
index e5dae7b54d9a8c9bf093110b7cf39b187e5d8ddb..6a926bae76b265cea23e1f5386cfc32fecdb6fef 100644 (file)
@@ -2833,7 +2833,6 @@ static struct scsi_host_template initio_template = {
        .can_queue              = MAX_TARGETS * i91u_MAXQUEUE,
        .this_id                = 1,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
 };
 
index cd41b63a2f10f3c943b3463efd9e633999708501..0dfcabe3ca7c2c7862b3712a391f2cd4ba19015a 100644 (file)
@@ -160,7 +160,6 @@ static struct scsi_host_template isci_sht = {
        .change_queue_depth             = sas_change_queue_depth,
        .bios_param                     = sas_bios_param,
        .can_queue                      = ISCI_CAN_QUEUE_VAL,
-       .cmd_per_lun                    = 1,
        .this_id                        = -1,
        .sg_tablesize                   = SG_ALL,
        .max_sectors                    = SCSI_DEFAULT_MAX_SECTORS,
index 0adb2e015597a68eb2d430d00bfd0bbb1a558a01..1412266314292dfa59bf473cf2ed3fdb2edebe65 100644 (file)
@@ -403,7 +403,6 @@ static struct scsi_host_template mac53c94_template = {
        .can_queue      = 1,
        .this_id        = 7,
        .sg_tablesize   = SG_ALL,
-       .cmd_per_lun    = 1,
        .use_clustering = DISABLE_CLUSTERING,
 };
 
index 53030b0e8015d833719b276adad1d8898cb89780..d40d734aa53a522e2e115d70e24f6d50804238c7 100644 (file)
@@ -56,7 +56,6 @@ static struct scsi_host_template mvs_sht = {
        .change_queue_depth     = sas_change_queue_depth,
        .bios_param             = sas_bios_param,
        .can_queue              = 1,
-       .cmd_per_lun            = 1,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
        .max_sectors            = SCSI_DEFAULT_MAX_SECTORS,
index c6077cefbeca30d6422d6c4ac6b47d5e9caedbd2..53c84771f0e8939f53e561cad198c40ac337c2f2 100644 (file)
@@ -274,7 +274,6 @@ static struct scsi_host_template nsp32_template = {
        .can_queue                      = 1,
        .sg_tablesize                   = NSP32_SG_SIZE,
        .max_sectors                    = 128,
-       .cmd_per_lun                    = 1,
        .this_id                        = NSP32_HOST_SCSIID,
        .use_clustering                 = DISABLE_CLUSTERING,
        .eh_abort_handler               = nsp32_eh_abort,
index 1b6c8833a304e645e034f91c894f4e7e0b486f13..5fb6eefc65413c8063c29541b422b31588d2bded 100644 (file)
@@ -86,7 +86,6 @@ static struct scsi_host_template nsp_driver_template = {
        .can_queue               = 1,
        .this_id                 = NSP_INITIATOR_ID,
        .sg_tablesize            = SG_ALL,
-       .cmd_per_lun             = 1,
        .use_clustering          = DISABLE_CLUSTERING,
 };
 
index bcaf89fe0c9ed886099925a53d1f2cc27b46f412..c670dc704c74eb09ca90be4f2cc49e3ede651926 100644 (file)
@@ -72,7 +72,6 @@ static struct scsi_host_template qlogicfas_driver_template = {
        .can_queue              = 1,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = DISABLE_CLUSTERING,
 };
 
index 155f9573021f08af0d733b9abcf91db2c151361e..20011c8afbb5c5b00155c61f5c2f5b84c7cc69f4 100644 (file)
@@ -680,7 +680,6 @@ static struct scsi_host_template sym53c500_driver_template = {
      .can_queue                        = 1,
      .this_id                  = 7,
      .sg_tablesize             = 32,
-     .cmd_per_lun              = 1,
      .use_clustering           = ENABLE_CLUSTERING,
      .shost_attrs              = SYM53C500_shost_attrs
 };
index 65555916d3b84e89fefa34817375276f0831342e..a132f2664d2f22e607d934bb51469852ab93bb88 100644 (file)
@@ -78,7 +78,6 @@ static struct scsi_host_template pm8001_sht = {
        .change_queue_depth     = sas_change_queue_depth,
        .bios_param             = sas_bios_param,
        .can_queue              = 1,
-       .cmd_per_lun            = 1,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
        .max_sectors            = SCSI_DEFAULT_MAX_SECTORS,
index 1db8b26063b4b93eb2372f960ae04e72d91f7524..ee00e27ba39602264769445e7fb44d6be637b344 100644 (file)
@@ -974,7 +974,6 @@ static struct scsi_host_template ppa_template = {
        .bios_param             = ppa_biosparam,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
        .can_queue              = 1,
        .slave_alloc            = ppa_adjust_queue,
index 5298def3373339bb3e0b917b756447395c9692bf..4924424d20fe8c691f221f3e23bb4dcb9b734a21 100644 (file)
@@ -347,7 +347,6 @@ static struct scsi_host_template ps3rom_host_template = {
        .can_queue =            1,
        .this_id =              7,
        .sg_tablesize =         SG_ALL,
-       .cmd_per_lun =          1,
        .emulated =             1,              /* only sg driver uses this */
        .max_sectors =          PS3ROM_MAX_SECTORS,
        .use_clustering =       ENABLE_CLUSTERING,
index c68a66e8cfc195ec1e78e2022efed4d9d87f6845..5d0ec42a9317d6a08a2b99fd424339c4554f4787 100644 (file)
@@ -4217,7 +4217,6 @@ static struct scsi_host_template qla1280_driver_template = {
        .can_queue              = 0xfffff,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
 };
 
index a22bb1b40ce2a12d344b741524ee75cee2668d58..61cac87fb86fd4323033834f6c2836ed05b9c0bf 100644 (file)
@@ -193,7 +193,6 @@ static struct scsi_host_template qlogicfas_driver_template = {
        .can_queue              = 1,
        .this_id                = -1,
        .sg_tablesize           = SG_ALL,
-       .cmd_per_lun            = 1,
        .use_clustering         = DISABLE_CLUSTERING,
 };
 
index fe122700cad811f017c48052d45f31f5fb8018dd..676385ff28efb0d4dfc392f8dddf7a2c54c32aef 100644 (file)
@@ -1287,7 +1287,6 @@ static struct scsi_host_template qpti_template = {
        .can_queue              = QLOGICPTI_REQ_QUEUE_LEN,
        .this_id                = 7,
        .sg_tablesize           = QLOGICPTI_MAX_SG(QLOGICPTI_REQ_QUEUE_LEN),
-       .cmd_per_lun            = 1,
        .use_clustering         = ENABLE_CLUSTERING,
 };
 
index 0b7819f3e09b1736288a1827b5410c39efcdc437..5bdcbe8fa958dabb0785615eab99b3e107bf124b 100644 (file)
@@ -838,7 +838,6 @@ static struct scsi_host_template driver_template = {
        .can_queue =            1,
        .this_id =              SYM53C416_SCSI_ID,
        .sg_tablesize =         32,
-       .cmd_per_lun =          1,
        .unchecked_isa_dma =    1,
        .use_clustering =       ENABLE_CLUSTERING,
 };
index 289ad016d92504e9d4ebbc47cf8d244ab6cb68b5..61346aa731785b417cf52a44e6a55003d7d9e7ac 100644 (file)
@@ -882,7 +882,6 @@ static struct scsi_host_template wd719x_template = {
        .can_queue                      = 255,
        .this_id                        = 7,
        .sg_tablesize                   = WD719X_SG,
-       .cmd_per_lun                    = WD719X_CMD_PER_LUN,
        .use_clustering                 = ENABLE_CLUSTERING,
 };
 
index 185e30e4eb93fb597d102e7e112a45b0ece2632e..9c6dd45f95f56f26fb83b6a18a023fa73aaaa009 100644 (file)
@@ -2,8 +2,6 @@
 #define _WD719X_H_
 
 #define WD719X_SG 255          /* Scatter/gather size */
-#define WD719X_CMD_PER_LUN 1   /* We should be able to do linked commands, but
-                                * this is 1 for now to be safe. */
 
 struct wd719x_sglist {
        __le32 ptr;
index d64b6ed9c0c967eb725a8911bc04138e6d25430d..aed49bf762b4174c0c76e4851d81c7a8a7af5d41 100644 (file)
@@ -230,7 +230,6 @@ static struct scsi_host_template rtsx_host_template = {
 
        /* queue commands only, only one command per LUN */
        .can_queue =                    1,
-       .cmd_per_lun =                  1,
 
        /* unknown initiator id */
        .this_id =                      -1,
index 6431d08c8d9dea8d401400fe21ccf9cf5ce41e14..a4dbb0cd80da191b2d5e7e541c007f2fd1b23b76 100644 (file)
@@ -635,7 +635,6 @@ static struct scsi_host_template mts_scsi_host_template = {
        .sg_tablesize =         SG_ALL,
        .can_queue =            1,
        .this_id =              -1,
-       .cmd_per_lun =          1,
        .use_clustering =       1,
        .emulated =             1,
        .slave_alloc =          mts_slave_alloc,
index 0e400f382f3a8aea1f56f568e623b7fecfbf7de9..996ef1e882d386d24f5ef526b31a360269eeeec1 100644 (file)
@@ -558,7 +558,6 @@ struct scsi_host_template usb_stor_host_template = {
 
        /* queue commands only, only one command per LUN */
        .can_queue =                    1,
-       .cmd_per_lun =                  1,
 
        /* unknown initiator id */
        .this_id =                      -1,
index 6cdabdc119a73bc172d5b2e52f024113bde09d3b..56b97fe1d18eeabf06c84967fc9597b3afaa3a0c 100644 (file)
@@ -803,7 +803,6 @@ static struct scsi_host_template uas_host_template = {
        .can_queue = 65536,     /* Is there a limit on the _host_ ? */
        .this_id = -1,
        .sg_tablesize = SG_NONE,
-       .cmd_per_lun = 1,       /* until we override it */
        .skip_settle_delay = 1,
        .use_blk_tags = 1,
 };
index 8dad4a307bb8c4b086e8f6f62211d91d8c05a53a..1402291aab5ebab658907dfee351fefb4d54030c 100644 (file)
@@ -134,7 +134,6 @@ enum {
        ATA_ALL_DEVICES         = (1 << ATA_MAX_DEVICES) - 1,
 
        ATA_SHT_EMULATED        = 1,
-       ATA_SHT_CMD_PER_LUN     = 1,
        ATA_SHT_THIS_ID         = -1,
        ATA_SHT_USE_CLUSTERING  = 1,
 
@@ -1354,7 +1353,6 @@ extern struct device_attribute *ata_common_sdev_attrs[];
        .can_queue              = ATA_DEF_QUEUE,                \
        .tag_alloc_policy       = BLK_TAG_ALLOC_RR,             \
        .this_id                = ATA_SHT_THIS_ID,              \
-       .cmd_per_lun            = ATA_SHT_CMD_PER_LUN,          \
        .emulated               = ATA_SHT_EMULATED,             \
        .use_clustering         = ATA_SHT_USE_CLUSTERING,       \
        .proc_name              = drv_name,                     \
This page took 0.044106 seconds and 5 git commands to generate.