Skip to content

Commit b84b1d5

Browse files
hreineckeJames Bottomley
authored andcommitted
scsi: Do not set cmd_per_lun to 1 in the host template
'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>
1 parent f532a3f commit b84b1d5

40 files changed

Lines changed: 0 additions & 42 deletions

‎drivers/block/cciss_scsi.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static struct scsi_host_template cciss_driver_template = {
8484
.show_info = cciss_scsi_show_info,
8585
.queuecommand = cciss_scsi_queue_command,
8686
.this_id = 7,
87-
.cmd_per_lun = 1,
8887
.use_clustering = DISABLE_CLUSTERING,
8988
/* Can't have eh_bus_reset_handler or eh_host_reset_handler for cciss */
9089
.eh_device_reset_handler= cciss_eh_device_reset_handler,

‎drivers/firewire/sbp2.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,6 @@ static struct scsi_host_template scsi_driver_template = {
16111611
.this_id = -1,
16121612
.sg_tablesize = SG_ALL,
16131613
.use_clustering = ENABLE_CLUSTERING,
1614-
.cmd_per_lun = 1,
16151614
.can_queue = 1,
16161615
.sdev_attrs = sbp2_scsi_sysfs_attrs,
16171616
};

‎drivers/s390/scsi/zfcp_scsi.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ static struct scsi_host_template zfcp_scsi_host_template = {
297297
* ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2) * 8,
298298
/* GCD, adjusted later */
299299
.dma_boundary = ZFCP_QDIO_SBALE_LEN - 1,
300-
.cmd_per_lun = 1,
301300
.use_clustering = 1,
302301
.shost_attrs = zfcp_sysfs_shost_attrs,
303302
.sdev_attrs = zfcp_sysfs_sdev_attrs,

‎drivers/scsi/NCR53c406a.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,6 @@ static struct scsi_host_template driver_template =
10641064
.can_queue = 1 /* can_queue */,
10651065
.this_id = 7 /* SCSI ID of the chip */,
10661066
.sg_tablesize = 32 /*SG_ALL*/ /*SG_NONE*/,
1067-
.cmd_per_lun = 1 /* commands per lun */,
10681067
.unchecked_isa_dma = 1 /* unchecked_isa_dma */,
10691068
.use_clustering = ENABLE_CLUSTERING,
10701069
};

‎drivers/scsi/a100u2w.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,6 @@ static struct scsi_host_template inia100_template = {
10781078
.can_queue = 1,
10791079
.this_id = 1,
10801080
.sg_tablesize = SG_ALL,
1081-
.cmd_per_lun = 1,
10821081
.use_clustering = ENABLE_CLUSTERING,
10831082
};
10841083

‎drivers/scsi/aha152x.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2922,7 +2922,6 @@ static struct scsi_host_template aha152x_driver_template = {
29222922
.can_queue = 1,
29232923
.this_id = 7,
29242924
.sg_tablesize = SG_ALL,
2925-
.cmd_per_lun = 1,
29262925
.use_clustering = DISABLE_CLUSTERING,
29272926
.slave_alloc = aha152x_adjust_queue,
29282927
};

‎drivers/scsi/aha1542.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,6 @@ static struct scsi_host_template driver_template = {
950950
.can_queue = AHA1542_MAILBOXES,
951951
.this_id = 7,
952952
.sg_tablesize = 16,
953-
.cmd_per_lun = 1,
954953
.unchecked_isa_dma = 1,
955954
.use_clustering = ENABLE_CLUSTERING,
956955
};

‎drivers/scsi/aha1740.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ static struct scsi_host_template aha1740_template = {
544544
.can_queue = AHA1740_ECBS,
545545
.this_id = 7,
546546
.sg_tablesize = AHA1740_SCATTER,
547-
.cmd_per_lun = AHA1740_CMDLUN,
548547
.use_clustering = ENABLE_CLUSTERING,
549548
.eh_abort_handler = aha1740_eh_abort_handler,
550549
};

‎drivers/scsi/aha1740.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,5 @@ struct ecb { /* Enhanced Control Block 6.1 */
149149

150150
#define AHA1740_ECBS 32
151151
#define AHA1740_SCATTER 16
152-
#define AHA1740_CMDLUN 1
153152

154153
#endif

‎drivers/scsi/aic94xx/aic94xx_init.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static struct scsi_host_template aic94xx_sht = {
6565
.change_queue_depth = sas_change_queue_depth,
6666
.bios_param = sas_bios_param,
6767
.can_queue = 1,
68-
.cmd_per_lun = 1,
6968
.this_id = -1,
7069
.sg_tablesize = SG_ALL,
7170
.max_sectors = SCSI_DEFAULT_MAX_SECTORS,

0 commit comments

Comments
 (0)