diff options
author | Hannes Reinecke <hare@suse.de> | 2015-04-29 02:57:34 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-05-31 21:06:28 -0400 |
commit | b84b1d522f979fb53ad347605e24b2940fa2ad99 (patch) | |
tree | f3d5066024ecf631a27e4f4a3fe35910f7b25356 | |
parent | f532a3f9c47a88b5a4a0c1186d9030cde0e120d2 (diff) |
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>
40 files changed, 0 insertions, 42 deletions
diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c index ecd845cd28d8..1537302e56e3 100644 --- a/drivers/block/cciss_scsi.c +++ b/drivers/block/cciss_scsi.c | |||
@@ -84,7 +84,6 @@ static struct scsi_host_template cciss_driver_template = { | |||
84 | .show_info = cciss_scsi_show_info, | 84 | .show_info = cciss_scsi_show_info, |
85 | .queuecommand = cciss_scsi_queue_command, | 85 | .queuecommand = cciss_scsi_queue_command, |
86 | .this_id = 7, | 86 | .this_id = 7, |
87 | .cmd_per_lun = 1, | ||
88 | .use_clustering = DISABLE_CLUSTERING, | 87 | .use_clustering = DISABLE_CLUSTERING, |
89 | /* Can't have eh_bus_reset_handler or eh_host_reset_handler for cciss */ | 88 | /* Can't have eh_bus_reset_handler or eh_host_reset_handler for cciss */ |
90 | .eh_device_reset_handler= cciss_eh_device_reset_handler, | 89 | .eh_device_reset_handler= cciss_eh_device_reset_handler, |
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index c22606fe3d44..6bac03999fd4 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c | |||
@@ -1611,7 +1611,6 @@ static struct scsi_host_template scsi_driver_template = { | |||
1611 | .this_id = -1, | 1611 | .this_id = -1, |
1612 | .sg_tablesize = SG_ALL, | 1612 | .sg_tablesize = SG_ALL, |
1613 | .use_clustering = ENABLE_CLUSTERING, | 1613 | .use_clustering = ENABLE_CLUSTERING, |
1614 | .cmd_per_lun = 1, | ||
1615 | .can_queue = 1, | 1614 | .can_queue = 1, |
1616 | .sdev_attrs = sbp2_scsi_sysfs_attrs, | 1615 | .sdev_attrs = sbp2_scsi_sysfs_attrs, |
1617 | }; | 1616 | }; |
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 75f4bfc2b98a..b3c6ff49103b 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -297,7 +297,6 @@ static struct scsi_host_template zfcp_scsi_host_template = { | |||
297 | * ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2) * 8, | 297 | * ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2) * 8, |
298 | /* GCD, adjusted later */ | 298 | /* GCD, adjusted later */ |
299 | .dma_boundary = ZFCP_QDIO_SBALE_LEN - 1, | 299 | .dma_boundary = ZFCP_QDIO_SBALE_LEN - 1, |
300 | .cmd_per_lun = 1, | ||
301 | .use_clustering = 1, | 300 | .use_clustering = 1, |
302 | .shost_attrs = zfcp_sysfs_shost_attrs, | 301 | .shost_attrs = zfcp_sysfs_shost_attrs, |
303 | .sdev_attrs = zfcp_sysfs_sdev_attrs, | 302 | .sdev_attrs = zfcp_sysfs_sdev_attrs, |
diff --git a/drivers/scsi/NCR53c406a.c b/drivers/scsi/NCR53c406a.c index 42c7161474f7..6e110c630d2c 100644 --- a/drivers/scsi/NCR53c406a.c +++ b/drivers/scsi/NCR53c406a.c | |||
@@ -1064,7 +1064,6 @@ static struct scsi_host_template driver_template = | |||
1064 | .can_queue = 1 /* can_queue */, | 1064 | .can_queue = 1 /* can_queue */, |
1065 | .this_id = 7 /* SCSI ID of the chip */, | 1065 | .this_id = 7 /* SCSI ID of the chip */, |
1066 | .sg_tablesize = 32 /*SG_ALL*/ /*SG_NONE*/, | 1066 | .sg_tablesize = 32 /*SG_ALL*/ /*SG_NONE*/, |
1067 | .cmd_per_lun = 1 /* commands per lun */, | ||
1068 | .unchecked_isa_dma = 1 /* unchecked_isa_dma */, | 1067 | .unchecked_isa_dma = 1 /* unchecked_isa_dma */, |
1069 | .use_clustering = ENABLE_CLUSTERING, | 1068 | .use_clustering = ENABLE_CLUSTERING, |
1070 | }; | 1069 | }; |
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c index 7e33a61c1ba4..cac6b37d7b1b 100644 --- a/drivers/scsi/a100u2w.c +++ b/drivers/scsi/a100u2w.c | |||
@@ -1078,7 +1078,6 @@ static struct scsi_host_template inia100_template = { | |||
1078 | .can_queue = 1, | 1078 | .can_queue = 1, |
1079 | .this_id = 1, | 1079 | .this_id = 1, |
1080 | .sg_tablesize = SG_ALL, | 1080 | .sg_tablesize = SG_ALL, |
1081 | .cmd_per_lun = 1, | ||
1082 | .use_clustering = ENABLE_CLUSTERING, | 1081 | .use_clustering = ENABLE_CLUSTERING, |
1083 | }; | 1082 | }; |
1084 | 1083 | ||
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index e31c460a1335..f44d0487236e 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
@@ -2922,7 +2922,6 @@ static struct scsi_host_template aha152x_driver_template = { | |||
2922 | .can_queue = 1, | 2922 | .can_queue = 1, |
2923 | .this_id = 7, | 2923 | .this_id = 7, |
2924 | .sg_tablesize = SG_ALL, | 2924 | .sg_tablesize = SG_ALL, |
2925 | .cmd_per_lun = 1, | ||
2926 | .use_clustering = DISABLE_CLUSTERING, | 2925 | .use_clustering = DISABLE_CLUSTERING, |
2927 | .slave_alloc = aha152x_adjust_queue, | 2926 | .slave_alloc = aha152x_adjust_queue, |
2928 | }; | 2927 | }; |
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index b95d2779f467..5b8b2937a3fe 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c | |||
@@ -950,7 +950,6 @@ static struct scsi_host_template driver_template = { | |||
950 | .can_queue = AHA1542_MAILBOXES, | 950 | .can_queue = AHA1542_MAILBOXES, |
951 | .this_id = 7, | 951 | .this_id = 7, |
952 | .sg_tablesize = 16, | 952 | .sg_tablesize = 16, |
953 | .cmd_per_lun = 1, | ||
954 | .unchecked_isa_dma = 1, | 953 | .unchecked_isa_dma = 1, |
955 | .use_clustering = ENABLE_CLUSTERING, | 954 | .use_clustering = ENABLE_CLUSTERING, |
956 | }; | 955 | }; |
diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index 31ace4bef8fe..bad35ffc015d 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c | |||
@@ -544,7 +544,6 @@ static struct scsi_host_template aha1740_template = { | |||
544 | .can_queue = AHA1740_ECBS, | 544 | .can_queue = AHA1740_ECBS, |
545 | .this_id = 7, | 545 | .this_id = 7, |
546 | .sg_tablesize = AHA1740_SCATTER, | 546 | .sg_tablesize = AHA1740_SCATTER, |
547 | .cmd_per_lun = AHA1740_CMDLUN, | ||
548 | .use_clustering = ENABLE_CLUSTERING, | 547 | .use_clustering = ENABLE_CLUSTERING, |
549 | .eh_abort_handler = aha1740_eh_abort_handler, | 548 | .eh_abort_handler = aha1740_eh_abort_handler, |
550 | }; | 549 | }; |
diff --git a/drivers/scsi/aha1740.h b/drivers/scsi/aha1740.h index af23fd6bd795..b0c5603461ca 100644 --- a/drivers/scsi/aha1740.h +++ b/drivers/scsi/aha1740.h | |||
@@ -149,6 +149,5 @@ struct ecb { /* Enhanced Control Block 6.1 */ | |||
149 | 149 | ||
150 | #define AHA1740_ECBS 32 | 150 | #define AHA1740_ECBS 32 |
151 | #define AHA1740_SCATTER 16 | 151 | #define AHA1740_SCATTER 16 |
152 | #define AHA1740_CMDLUN 1 | ||
153 | 152 | ||
154 | #endif | 153 | #endif |
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c index 02a2512b76a8..4b135cca42a1 100644 --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c | |||
@@ -65,7 +65,6 @@ static struct scsi_host_template aic94xx_sht = { | |||
65 | .change_queue_depth = sas_change_queue_depth, | 65 | .change_queue_depth = sas_change_queue_depth, |
66 | .bios_param = sas_bios_param, | 66 | .bios_param = sas_bios_param, |
67 | .can_queue = 1, | 67 | .can_queue = 1, |
68 | .cmd_per_lun = 1, | ||
69 | .this_id = -1, | 68 | .this_id = -1, |
70 | .sg_tablesize = SG_ALL, | 69 | .sg_tablesize = SG_ALL, |
71 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, | 70 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, |
diff --git a/drivers/scsi/arm/arxescsi.c b/drivers/scsi/arm/arxescsi.c index 32d23212de48..3110736fd337 100644 --- a/drivers/scsi/arm/arxescsi.c +++ b/drivers/scsi/arm/arxescsi.c | |||
@@ -245,7 +245,6 @@ static struct scsi_host_template arxescsi_template = { | |||
245 | .can_queue = 0, | 245 | .can_queue = 0, |
246 | .this_id = 7, | 246 | .this_id = 7, |
247 | .sg_tablesize = SG_ALL, | 247 | .sg_tablesize = SG_ALL, |
248 | .cmd_per_lun = 1, | ||
249 | .use_clustering = DISABLE_CLUSTERING, | 248 | .use_clustering = DISABLE_CLUSTERING, |
250 | .proc_name = "arxescsi", | 249 | .proc_name = "arxescsi", |
251 | }; | 250 | }; |
diff --git a/drivers/scsi/arm/cumana_2.c b/drivers/scsi/arm/cumana_2.c index abc66f5263ec..faa1bee07c8a 100644 --- a/drivers/scsi/arm/cumana_2.c +++ b/drivers/scsi/arm/cumana_2.c | |||
@@ -367,7 +367,6 @@ static struct scsi_host_template cumanascsi2_template = { | |||
367 | .this_id = 7, | 367 | .this_id = 7, |
368 | .sg_tablesize = SCSI_MAX_SG_CHAIN_SEGMENTS, | 368 | .sg_tablesize = SCSI_MAX_SG_CHAIN_SEGMENTS, |
369 | .dma_boundary = IOMD_DMA_BOUNDARY, | 369 | .dma_boundary = IOMD_DMA_BOUNDARY, |
370 | .cmd_per_lun = 1, | ||
371 | .use_clustering = DISABLE_CLUSTERING, | 370 | .use_clustering = DISABLE_CLUSTERING, |
372 | .proc_name = "cumanascsi2", | 371 | .proc_name = "cumanascsi2", |
373 | }; | 372 | }; |
diff --git a/drivers/scsi/arm/eesox.c b/drivers/scsi/arm/eesox.c index 5bf3c0d134b4..a8ad6880dd91 100644 --- a/drivers/scsi/arm/eesox.c +++ b/drivers/scsi/arm/eesox.c | |||
@@ -486,7 +486,6 @@ static struct scsi_host_template eesox_template = { | |||
486 | .this_id = 7, | 486 | .this_id = 7, |
487 | .sg_tablesize = SCSI_MAX_SG_CHAIN_SEGMENTS, | 487 | .sg_tablesize = SCSI_MAX_SG_CHAIN_SEGMENTS, |
488 | .dma_boundary = IOMD_DMA_BOUNDARY, | 488 | .dma_boundary = IOMD_DMA_BOUNDARY, |
489 | .cmd_per_lun = 1, | ||
490 | .use_clustering = DISABLE_CLUSTERING, | 489 | .use_clustering = DISABLE_CLUSTERING, |
491 | .proc_name = "eesox", | 490 | .proc_name = "eesox", |
492 | }; | 491 | }; |
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index 0836433e3a2d..05301bc752ee 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c | |||
@@ -3158,7 +3158,6 @@ static struct scsi_host_template atp870u_template = { | |||
3158 | .can_queue = qcnt /* can_queue */, | 3158 | .can_queue = qcnt /* can_queue */, |
3159 | .this_id = 7 /* SCSI ID */, | 3159 | .this_id = 7 /* SCSI ID */, |
3160 | .sg_tablesize = ATP870U_SCATTER /*SG_ALL*/ /*SG_NONE*/, | 3160 | .sg_tablesize = ATP870U_SCATTER /*SG_ALL*/ /*SG_NONE*/, |
3161 | .cmd_per_lun = ATP870U_CMDLUN /* commands per lun */, | ||
3162 | .use_clustering = ENABLE_CLUSTERING, | 3161 | .use_clustering = ENABLE_CLUSTERING, |
3163 | .max_sectors = ATP870U_MAX_SECTORS, | 3162 | .max_sectors = ATP870U_MAX_SECTORS, |
3164 | }; | 3163 | }; |
diff --git a/drivers/scsi/atp870u.h b/drivers/scsi/atp870u.h index 62bae64a01c1..5cf62566ad42 100644 --- a/drivers/scsi/atp870u.h +++ b/drivers/scsi/atp870u.h | |||
@@ -10,7 +10,6 @@ | |||
10 | #define MAX_SENSE 14 | 10 | #define MAX_SENSE 14 |
11 | #define qcnt 32 | 11 | #define qcnt 32 |
12 | #define ATP870U_SCATTER 128 | 12 | #define ATP870U_SCATTER 128 |
13 | #define ATP870U_CMDLUN 1 | ||
14 | 13 | ||
15 | #define MAX_ADAPTER 8 | 14 | #define MAX_ADAPTER 8 |
16 | #define MAX_SCSI_ID 16 | 15 | #define MAX_SCSI_ID 16 |
diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index 2806cfbec2b9..f35ed53adaac 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c | |||
@@ -3562,7 +3562,6 @@ static struct scsi_host_template driver_template = { | |||
3562 | .slave_configure = adpt_slave_configure, | 3562 | .slave_configure = adpt_slave_configure, |
3563 | .can_queue = MAX_TO_IOP_MESSAGES, | 3563 | .can_queue = MAX_TO_IOP_MESSAGES, |
3564 | .this_id = 7, | 3564 | .this_id = 7, |
3565 | .cmd_per_lun = 1, | ||
3566 | .use_clustering = ENABLE_CLUSTERING, | 3565 | .use_clustering = ENABLE_CLUSTERING, |
3567 | }; | 3566 | }; |
3568 | 3567 | ||
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index fff682976c56..eefe14d453db 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c | |||
@@ -1764,7 +1764,6 @@ struct scsi_host_template fdomain_driver_template = { | |||
1764 | .can_queue = 1, | 1764 | .can_queue = 1, |
1765 | .this_id = 6, | 1765 | .this_id = 6, |
1766 | .sg_tablesize = 64, | 1766 | .sg_tablesize = 64, |
1767 | .cmd_per_lun = 1, | ||
1768 | .use_clustering = DISABLE_CLUSTERING, | 1767 | .use_clustering = DISABLE_CLUSTERING, |
1769 | }; | 1768 | }; |
1770 | 1769 | ||
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c index 89a8266560d0..4e1a632ccf16 100644 --- a/drivers/scsi/imm.c +++ b/drivers/scsi/imm.c | |||
@@ -1109,7 +1109,6 @@ static struct scsi_host_template imm_template = { | |||
1109 | .bios_param = imm_biosparam, | 1109 | .bios_param = imm_biosparam, |
1110 | .this_id = 7, | 1110 | .this_id = 7, |
1111 | .sg_tablesize = SG_ALL, | 1111 | .sg_tablesize = SG_ALL, |
1112 | .cmd_per_lun = 1, | ||
1113 | .use_clustering = ENABLE_CLUSTERING, | 1112 | .use_clustering = ENABLE_CLUSTERING, |
1114 | .can_queue = 1, | 1113 | .can_queue = 1, |
1115 | .slave_alloc = imm_adjust_queue, | 1114 | .slave_alloc = imm_adjust_queue, |
diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index e5dae7b54d9a..6a926bae76b2 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c | |||
@@ -2833,7 +2833,6 @@ static struct scsi_host_template initio_template = { | |||
2833 | .can_queue = MAX_TARGETS * i91u_MAXQUEUE, | 2833 | .can_queue = MAX_TARGETS * i91u_MAXQUEUE, |
2834 | .this_id = 1, | 2834 | .this_id = 1, |
2835 | .sg_tablesize = SG_ALL, | 2835 | .sg_tablesize = SG_ALL, |
2836 | .cmd_per_lun = 1, | ||
2837 | .use_clustering = ENABLE_CLUSTERING, | 2836 | .use_clustering = ENABLE_CLUSTERING, |
2838 | }; | 2837 | }; |
2839 | 2838 | ||
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index cd41b63a2f10..0dfcabe3ca7c 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c | |||
@@ -160,7 +160,6 @@ static struct scsi_host_template isci_sht = { | |||
160 | .change_queue_depth = sas_change_queue_depth, | 160 | .change_queue_depth = sas_change_queue_depth, |
161 | .bios_param = sas_bios_param, | 161 | .bios_param = sas_bios_param, |
162 | .can_queue = ISCI_CAN_QUEUE_VAL, | 162 | .can_queue = ISCI_CAN_QUEUE_VAL, |
163 | .cmd_per_lun = 1, | ||
164 | .this_id = -1, | 163 | .this_id = -1, |
165 | .sg_tablesize = SG_ALL, | 164 | .sg_tablesize = SG_ALL, |
166 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, | 165 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, |
diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c index 0adb2e015597..141226631429 100644 --- a/drivers/scsi/mac53c94.c +++ b/drivers/scsi/mac53c94.c | |||
@@ -403,7 +403,6 @@ static struct scsi_host_template mac53c94_template = { | |||
403 | .can_queue = 1, | 403 | .can_queue = 1, |
404 | .this_id = 7, | 404 | .this_id = 7, |
405 | .sg_tablesize = SG_ALL, | 405 | .sg_tablesize = SG_ALL, |
406 | .cmd_per_lun = 1, | ||
407 | .use_clustering = DISABLE_CLUSTERING, | 406 | .use_clustering = DISABLE_CLUSTERING, |
408 | }; | 407 | }; |
409 | 408 | ||
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 53030b0e8015..d40d734aa53a 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c | |||
@@ -56,7 +56,6 @@ static struct scsi_host_template mvs_sht = { | |||
56 | .change_queue_depth = sas_change_queue_depth, | 56 | .change_queue_depth = sas_change_queue_depth, |
57 | .bios_param = sas_bios_param, | 57 | .bios_param = sas_bios_param, |
58 | .can_queue = 1, | 58 | .can_queue = 1, |
59 | .cmd_per_lun = 1, | ||
60 | .this_id = -1, | 59 | .this_id = -1, |
61 | .sg_tablesize = SG_ALL, | 60 | .sg_tablesize = SG_ALL, |
62 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, | 61 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, |
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index c6077cefbeca..53c84771f0e8 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c | |||
@@ -274,7 +274,6 @@ static struct scsi_host_template nsp32_template = { | |||
274 | .can_queue = 1, | 274 | .can_queue = 1, |
275 | .sg_tablesize = NSP32_SG_SIZE, | 275 | .sg_tablesize = NSP32_SG_SIZE, |
276 | .max_sectors = 128, | 276 | .max_sectors = 128, |
277 | .cmd_per_lun = 1, | ||
278 | .this_id = NSP32_HOST_SCSIID, | 277 | .this_id = NSP32_HOST_SCSIID, |
279 | .use_clustering = DISABLE_CLUSTERING, | 278 | .use_clustering = DISABLE_CLUSTERING, |
280 | .eh_abort_handler = nsp32_eh_abort, | 279 | .eh_abort_handler = nsp32_eh_abort, |
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index 1b6c8833a304..5fb6eefc6541 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -86,7 +86,6 @@ static struct scsi_host_template nsp_driver_template = { | |||
86 | .can_queue = 1, | 86 | .can_queue = 1, |
87 | .this_id = NSP_INITIATOR_ID, | 87 | .this_id = NSP_INITIATOR_ID, |
88 | .sg_tablesize = SG_ALL, | 88 | .sg_tablesize = SG_ALL, |
89 | .cmd_per_lun = 1, | ||
90 | .use_clustering = DISABLE_CLUSTERING, | 89 | .use_clustering = DISABLE_CLUSTERING, |
91 | }; | 90 | }; |
92 | 91 | ||
diff --git a/drivers/scsi/pcmcia/qlogic_stub.c b/drivers/scsi/pcmcia/qlogic_stub.c index bcaf89fe0c9e..c670dc704c74 100644 --- a/drivers/scsi/pcmcia/qlogic_stub.c +++ b/drivers/scsi/pcmcia/qlogic_stub.c | |||
@@ -72,7 +72,6 @@ static struct scsi_host_template qlogicfas_driver_template = { | |||
72 | .can_queue = 1, | 72 | .can_queue = 1, |
73 | .this_id = -1, | 73 | .this_id = -1, |
74 | .sg_tablesize = SG_ALL, | 74 | .sg_tablesize = SG_ALL, |
75 | .cmd_per_lun = 1, | ||
76 | .use_clustering = DISABLE_CLUSTERING, | 75 | .use_clustering = DISABLE_CLUSTERING, |
77 | }; | 76 | }; |
78 | 77 | ||
diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index 155f9573021f..20011c8afbb5 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c | |||
@@ -680,7 +680,6 @@ static struct scsi_host_template sym53c500_driver_template = { | |||
680 | .can_queue = 1, | 680 | .can_queue = 1, |
681 | .this_id = 7, | 681 | .this_id = 7, |
682 | .sg_tablesize = 32, | 682 | .sg_tablesize = 32, |
683 | .cmd_per_lun = 1, | ||
684 | .use_clustering = ENABLE_CLUSTERING, | 683 | .use_clustering = ENABLE_CLUSTERING, |
685 | .shost_attrs = SYM53C500_shost_attrs | 684 | .shost_attrs = SYM53C500_shost_attrs |
686 | }; | 685 | }; |
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 65555916d3b8..a132f2664d2f 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -78,7 +78,6 @@ static struct scsi_host_template pm8001_sht = { | |||
78 | .change_queue_depth = sas_change_queue_depth, | 78 | .change_queue_depth = sas_change_queue_depth, |
79 | .bios_param = sas_bios_param, | 79 | .bios_param = sas_bios_param, |
80 | .can_queue = 1, | 80 | .can_queue = 1, |
81 | .cmd_per_lun = 1, | ||
82 | .this_id = -1, | 81 | .this_id = -1, |
83 | .sg_tablesize = SG_ALL, | 82 | .sg_tablesize = SG_ALL, |
84 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, | 83 | .max_sectors = SCSI_DEFAULT_MAX_SECTORS, |
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c index 1db8b26063b4..ee00e27ba396 100644 --- a/drivers/scsi/ppa.c +++ b/drivers/scsi/ppa.c | |||
@@ -974,7 +974,6 @@ static struct scsi_host_template ppa_template = { | |||
974 | .bios_param = ppa_biosparam, | 974 | .bios_param = ppa_biosparam, |
975 | .this_id = -1, | 975 | .this_id = -1, |
976 | .sg_tablesize = SG_ALL, | 976 | .sg_tablesize = SG_ALL, |
977 | .cmd_per_lun = 1, | ||
978 | .use_clustering = ENABLE_CLUSTERING, | 977 | .use_clustering = ENABLE_CLUSTERING, |
979 | .can_queue = 1, | 978 | .can_queue = 1, |
980 | .slave_alloc = ppa_adjust_queue, | 979 | .slave_alloc = ppa_adjust_queue, |
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index 5298def33733..4924424d20fe 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c | |||
@@ -347,7 +347,6 @@ static struct scsi_host_template ps3rom_host_template = { | |||
347 | .can_queue = 1, | 347 | .can_queue = 1, |
348 | .this_id = 7, | 348 | .this_id = 7, |
349 | .sg_tablesize = SG_ALL, | 349 | .sg_tablesize = SG_ALL, |
350 | .cmd_per_lun = 1, | ||
351 | .emulated = 1, /* only sg driver uses this */ | 350 | .emulated = 1, /* only sg driver uses this */ |
352 | .max_sectors = PS3ROM_MAX_SECTORS, | 351 | .max_sectors = PS3ROM_MAX_SECTORS, |
353 | .use_clustering = ENABLE_CLUSTERING, | 352 | .use_clustering = ENABLE_CLUSTERING, |
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index c68a66e8cfc1..5d0ec42a9317 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -4217,7 +4217,6 @@ static struct scsi_host_template qla1280_driver_template = { | |||
4217 | .can_queue = 0xfffff, | 4217 | .can_queue = 0xfffff, |
4218 | .this_id = -1, | 4218 | .this_id = -1, |
4219 | .sg_tablesize = SG_ALL, | 4219 | .sg_tablesize = SG_ALL, |
4220 | .cmd_per_lun = 1, | ||
4221 | .use_clustering = ENABLE_CLUSTERING, | 4220 | .use_clustering = ENABLE_CLUSTERING, |
4222 | }; | 4221 | }; |
4223 | 4222 | ||
diff --git a/drivers/scsi/qlogicfas.c b/drivers/scsi/qlogicfas.c index a22bb1b40ce2..61cac87fb86f 100644 --- a/drivers/scsi/qlogicfas.c +++ b/drivers/scsi/qlogicfas.c | |||
@@ -193,7 +193,6 @@ static struct scsi_host_template qlogicfas_driver_template = { | |||
193 | .can_queue = 1, | 193 | .can_queue = 1, |
194 | .this_id = -1, | 194 | .this_id = -1, |
195 | .sg_tablesize = SG_ALL, | 195 | .sg_tablesize = SG_ALL, |
196 | .cmd_per_lun = 1, | ||
197 | .use_clustering = DISABLE_CLUSTERING, | 196 | .use_clustering = DISABLE_CLUSTERING, |
198 | }; | 197 | }; |
199 | 198 | ||
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index fe122700cad8..676385ff28ef 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c | |||
@@ -1287,7 +1287,6 @@ static struct scsi_host_template qpti_template = { | |||
1287 | .can_queue = QLOGICPTI_REQ_QUEUE_LEN, | 1287 | .can_queue = QLOGICPTI_REQ_QUEUE_LEN, |
1288 | .this_id = 7, | 1288 | .this_id = 7, |
1289 | .sg_tablesize = QLOGICPTI_MAX_SG(QLOGICPTI_REQ_QUEUE_LEN), | 1289 | .sg_tablesize = QLOGICPTI_MAX_SG(QLOGICPTI_REQ_QUEUE_LEN), |
1290 | .cmd_per_lun = 1, | ||
1291 | .use_clustering = ENABLE_CLUSTERING, | 1290 | .use_clustering = ENABLE_CLUSTERING, |
1292 | }; | 1291 | }; |
1293 | 1292 | ||
diff --git a/drivers/scsi/sym53c416.c b/drivers/scsi/sym53c416.c index 0b7819f3e09b..5bdcbe8fa958 100644 --- a/drivers/scsi/sym53c416.c +++ b/drivers/scsi/sym53c416.c | |||
@@ -838,7 +838,6 @@ static struct scsi_host_template driver_template = { | |||
838 | .can_queue = 1, | 838 | .can_queue = 1, |
839 | .this_id = SYM53C416_SCSI_ID, | 839 | .this_id = SYM53C416_SCSI_ID, |
840 | .sg_tablesize = 32, | 840 | .sg_tablesize = 32, |
841 | .cmd_per_lun = 1, | ||
842 | .unchecked_isa_dma = 1, | 841 | .unchecked_isa_dma = 1, |
843 | .use_clustering = ENABLE_CLUSTERING, | 842 | .use_clustering = ENABLE_CLUSTERING, |
844 | }; | 843 | }; |
diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index 289ad016d925..61346aa73178 100644 --- a/drivers/scsi/wd719x.c +++ b/drivers/scsi/wd719x.c | |||
@@ -882,7 +882,6 @@ static struct scsi_host_template wd719x_template = { | |||
882 | .can_queue = 255, | 882 | .can_queue = 255, |
883 | .this_id = 7, | 883 | .this_id = 7, |
884 | .sg_tablesize = WD719X_SG, | 884 | .sg_tablesize = WD719X_SG, |
885 | .cmd_per_lun = WD719X_CMD_PER_LUN, | ||
886 | .use_clustering = ENABLE_CLUSTERING, | 885 | .use_clustering = ENABLE_CLUSTERING, |
887 | }; | 886 | }; |
888 | 887 | ||
diff --git a/drivers/scsi/wd719x.h b/drivers/scsi/wd719x.h index 185e30e4eb93..9c6dd45f95f5 100644 --- a/drivers/scsi/wd719x.h +++ b/drivers/scsi/wd719x.h | |||
@@ -2,8 +2,6 @@ | |||
2 | #define _WD719X_H_ | 2 | #define _WD719X_H_ |
3 | 3 | ||
4 | #define WD719X_SG 255 /* Scatter/gather size */ | 4 | #define WD719X_SG 255 /* Scatter/gather size */ |
5 | #define WD719X_CMD_PER_LUN 1 /* We should be able to do linked commands, but | ||
6 | * this is 1 for now to be safe. */ | ||
7 | 5 | ||
8 | struct wd719x_sglist { | 6 | struct wd719x_sglist { |
9 | __le32 ptr; | 7 | __le32 ptr; |
diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index d64b6ed9c0c9..aed49bf762b4 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c | |||
@@ -230,7 +230,6 @@ static struct scsi_host_template rtsx_host_template = { | |||
230 | 230 | ||
231 | /* queue commands only, only one command per LUN */ | 231 | /* queue commands only, only one command per LUN */ |
232 | .can_queue = 1, | 232 | .can_queue = 1, |
233 | .cmd_per_lun = 1, | ||
234 | 233 | ||
235 | /* unknown initiator id */ | 234 | /* unknown initiator id */ |
236 | .this_id = -1, | 235 | .this_id = -1, |
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index 6431d08c8d9d..a4dbb0cd80da 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c | |||
@@ -635,7 +635,6 @@ static struct scsi_host_template mts_scsi_host_template = { | |||
635 | .sg_tablesize = SG_ALL, | 635 | .sg_tablesize = SG_ALL, |
636 | .can_queue = 1, | 636 | .can_queue = 1, |
637 | .this_id = -1, | 637 | .this_id = -1, |
638 | .cmd_per_lun = 1, | ||
639 | .use_clustering = 1, | 638 | .use_clustering = 1, |
640 | .emulated = 1, | 639 | .emulated = 1, |
641 | .slave_alloc = mts_slave_alloc, | 640 | .slave_alloc = mts_slave_alloc, |
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 0e400f382f3a..996ef1e882d3 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c | |||
@@ -558,7 +558,6 @@ struct scsi_host_template usb_stor_host_template = { | |||
558 | 558 | ||
559 | /* queue commands only, only one command per LUN */ | 559 | /* queue commands only, only one command per LUN */ |
560 | .can_queue = 1, | 560 | .can_queue = 1, |
561 | .cmd_per_lun = 1, | ||
562 | 561 | ||
563 | /* unknown initiator id */ | 562 | /* unknown initiator id */ |
564 | .this_id = -1, | 563 | .this_id = -1, |
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index 6cdabdc119a7..56b97fe1d18e 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c | |||
@@ -803,7 +803,6 @@ static struct scsi_host_template uas_host_template = { | |||
803 | .can_queue = 65536, /* Is there a limit on the _host_ ? */ | 803 | .can_queue = 65536, /* Is there a limit on the _host_ ? */ |
804 | .this_id = -1, | 804 | .this_id = -1, |
805 | .sg_tablesize = SG_NONE, | 805 | .sg_tablesize = SG_NONE, |
806 | .cmd_per_lun = 1, /* until we override it */ | ||
807 | .skip_settle_delay = 1, | 806 | .skip_settle_delay = 1, |
808 | .use_blk_tags = 1, | 807 | .use_blk_tags = 1, |
809 | }; | 808 | }; |
diff --git a/include/linux/libata.h b/include/linux/libata.h index 8dad4a307bb8..1402291aab5e 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -134,7 +134,6 @@ enum { | |||
134 | ATA_ALL_DEVICES = (1 << ATA_MAX_DEVICES) - 1, | 134 | ATA_ALL_DEVICES = (1 << ATA_MAX_DEVICES) - 1, |
135 | 135 | ||
136 | ATA_SHT_EMULATED = 1, | 136 | ATA_SHT_EMULATED = 1, |
137 | ATA_SHT_CMD_PER_LUN = 1, | ||
138 | ATA_SHT_THIS_ID = -1, | 137 | ATA_SHT_THIS_ID = -1, |
139 | ATA_SHT_USE_CLUSTERING = 1, | 138 | ATA_SHT_USE_CLUSTERING = 1, |
140 | 139 | ||
@@ -1354,7 +1353,6 @@ extern struct device_attribute *ata_common_sdev_attrs[]; | |||
1354 | .can_queue = ATA_DEF_QUEUE, \ | 1353 | .can_queue = ATA_DEF_QUEUE, \ |
1355 | .tag_alloc_policy = BLK_TAG_ALLOC_RR, \ | 1354 | .tag_alloc_policy = BLK_TAG_ALLOC_RR, \ |
1356 | .this_id = ATA_SHT_THIS_ID, \ | 1355 | .this_id = ATA_SHT_THIS_ID, \ |
1357 | .cmd_per_lun = ATA_SHT_CMD_PER_LUN, \ | ||
1358 | .emulated = ATA_SHT_EMULATED, \ | 1356 | .emulated = ATA_SHT_EMULATED, \ |
1359 | .use_clustering = ATA_SHT_USE_CLUSTERING, \ | 1357 | .use_clustering = ATA_SHT_USE_CLUSTERING, \ |
1360 | .proc_name = drv_name, \ | 1358 | .proc_name = drv_name, \ |