summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/scsi/scsi_mid_low_api.txt2
-rw-r--r--arch/ia64/hp/sim/simscsi.c2
-rw-r--r--drivers/scsi/a2091.c2
-rw-r--r--drivers/scsi/advansys.c4
-rw-r--r--drivers/scsi/aha152x.c2
-rw-r--r--drivers/scsi/arm/acornscsi.c2
-rw-r--r--drivers/scsi/arm/arxescsi.c2
-rw-r--r--drivers/scsi/arm/cumana_1.c2
-rw-r--r--drivers/scsi/arm/oak.c2
-rw-r--r--drivers/scsi/atari_scsi.c2
-rw-r--r--drivers/scsi/cxgbi/cxgb3i/cxgb3i.c2
-rw-r--r--drivers/scsi/cxgbi/cxgb4i/cxgb4i.c2
-rw-r--r--drivers/scsi/dc395x.c2
-rw-r--r--drivers/scsi/dmx3191d.c2
-rw-r--r--drivers/scsi/g_NCR5380.c2
-rw-r--r--drivers/scsi/gvp11.c2
-rw-r--r--drivers/scsi/hosts.c1
-rw-r--r--drivers/scsi/ips.c1
-rw-r--r--drivers/scsi/iscsi_tcp.c2
-rw-r--r--drivers/scsi/mac_esp.c2
-rw-r--r--drivers/scsi/mac_scsi.c2
-rw-r--r--drivers/scsi/mvumi.c2
-rw-r--r--drivers/scsi/myrb.c2
-rw-r--r--drivers/scsi/myrs.c2
-rw-r--r--drivers/scsi/nsp32.c2
-rw-r--r--drivers/scsi/pcmcia/nsp_cs.c2
-rw-r--r--drivers/scsi/pcmcia/qlogic_stub.c2
-rw-r--r--drivers/scsi/qlogicfas.c2
-rw-r--r--drivers/scsi/scsi_debug.c3
-rw-r--r--drivers/scsi/scsi_lib.c3
-rw-r--r--drivers/scsi/sgiwd93.c2
-rw-r--r--drivers/scsi/stex.c2
-rw-r--r--drivers/scsi/sun3_scsi.c2
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
-rw-r--r--drivers/target/loopback/tcm_loop.c2
-rw-r--r--drivers/usb/storage/uas.c2
-rw-r--r--include/scsi/scsi_host.h13
37 files changed, 34 insertions, 53 deletions
diff --git a/Documentation/scsi/scsi_mid_low_api.txt b/Documentation/scsi/scsi_mid_low_api.txt
index 177c031763c0..c1dd4939f4ae 100644
--- a/Documentation/scsi/scsi_mid_low_api.txt
+++ b/Documentation/scsi/scsi_mid_low_api.txt
@@ -1098,8 +1098,6 @@ of interest:
1098 unchecked_isa_dma - 1=>only use bottom 16 MB of ram (ISA DMA addressing 1098 unchecked_isa_dma - 1=>only use bottom 16 MB of ram (ISA DMA addressing
1099 restriction), 0=>can use full 32 bit (or better) DMA 1099 restriction), 0=>can use full 32 bit (or better) DMA
1100 address space 1100 address space
1101 use_clustering - 1=>SCSI commands in mid level's queue can be merged,
1102 0=>disallow SCSI command merging
1103 no_async_abort - 1=>Asynchronous aborts are not supported 1101 no_async_abort - 1=>Asynchronous aborts are not supported
1104 0=>Timed-out commands will be aborted asynchronously 1102 0=>Timed-out commands will be aborted asynchronously
1105 hostt - pointer to driver's struct scsi_host_template from which 1103 hostt - pointer to driver's struct scsi_host_template from which
diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c
index 7e1426e76d96..f86844fc0725 100644
--- a/arch/ia64/hp/sim/simscsi.c
+++ b/arch/ia64/hp/sim/simscsi.c
@@ -347,7 +347,7 @@ static struct scsi_host_template driver_template = {
347 .sg_tablesize = SG_ALL, 347 .sg_tablesize = SG_ALL,
348 .max_sectors = 1024, 348 .max_sectors = 1024,
349 .cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN, 349 .cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN,
350 .use_clustering = DISABLE_CLUSTERING, 350 .dma_boundary = PAGE_SIZE - 1,
351}; 351};
352 352
353static int __init 353static int __init
diff --git a/drivers/scsi/a2091.c b/drivers/scsi/a2091.c
index 61aadc7acb49..c96bc7261a42 100644
--- a/drivers/scsi/a2091.c
+++ b/drivers/scsi/a2091.c
@@ -160,7 +160,7 @@ static struct scsi_host_template a2091_scsi_template = {
160 .this_id = 7, 160 .this_id = 7,
161 .sg_tablesize = SG_ALL, 161 .sg_tablesize = SG_ALL,
162 .cmd_per_lun = CMD_PER_LUN, 162 .cmd_per_lun = CMD_PER_LUN,
163 .use_clustering = DISABLE_CLUSTERING 163 .dma_boundary = PAGE_SIZE - 1,
164}; 164};
165 165
166static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent) 166static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent)
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 95b4793c33f4..d37584403c33 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -3192,8 +3192,8 @@ static void asc_prt_driver_conf(struct seq_file *m, struct Scsi_Host *shost)
3192 shost->sg_tablesize, shost->cmd_per_lun); 3192 shost->sg_tablesize, shost->cmd_per_lun);
3193 3193
3194 seq_printf(m, 3194 seq_printf(m,
3195 " unchecked_isa_dma %d, use_clustering %d\n", 3195 " unchecked_isa_dma %d\n",
3196 shost->unchecked_isa_dma, shost->use_clustering); 3196 shost->unchecked_isa_dma);
3197 3197
3198 seq_printf(m, 3198 seq_printf(m,
3199 " flags 0x%x, last_reset 0x%lx, jiffies 0x%lx, asc_n_io_port 0x%x\n", 3199 " flags 0x%x, last_reset 0x%lx, jiffies 0x%lx, asc_n_io_port 0x%x\n",
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index 301b3cad15f8..97872838b983 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -2920,7 +2920,7 @@ static struct scsi_host_template aha152x_driver_template = {
2920 .can_queue = 1, 2920 .can_queue = 1,
2921 .this_id = 7, 2921 .this_id = 7,
2922 .sg_tablesize = SG_ALL, 2922 .sg_tablesize = SG_ALL,
2923 .use_clustering = DISABLE_CLUSTERING, 2923 .dma_boundary = PAGE_SIZE - 1,
2924 .slave_alloc = aha152x_adjust_queue, 2924 .slave_alloc = aha152x_adjust_queue,
2925}; 2925};
2926 2926
diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c
index 421fe869a11e..d7509859dc00 100644
--- a/drivers/scsi/arm/acornscsi.c
+++ b/drivers/scsi/arm/acornscsi.c
@@ -2890,7 +2890,7 @@ static struct scsi_host_template acornscsi_template = {
2890 .this_id = 7, 2890 .this_id = 7,
2891 .sg_tablesize = SG_ALL, 2891 .sg_tablesize = SG_ALL,
2892 .cmd_per_lun = 2, 2892 .cmd_per_lun = 2,
2893 .use_clustering = DISABLE_CLUSTERING, 2893 .dma_boundary = PAGE_SIZE - 1,
2894 .proc_name = "acornscsi", 2894 .proc_name = "acornscsi",
2895}; 2895};
2896 2896
diff --git a/drivers/scsi/arm/arxescsi.c b/drivers/scsi/arm/arxescsi.c
index 3110736fd337..5e9dd9f34821 100644
--- a/drivers/scsi/arm/arxescsi.c
+++ b/drivers/scsi/arm/arxescsi.c
@@ -245,7 +245,7 @@ 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 .use_clustering = DISABLE_CLUSTERING, 248 .dma_boundary = PAGE_SIZE - 1,
249 .proc_name = "arxescsi", 249 .proc_name = "arxescsi",
250}; 250};
251 251
diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c
index ae1d809904fb..e2d2a81d8e0b 100644
--- a/drivers/scsi/arm/cumana_1.c
+++ b/drivers/scsi/arm/cumana_1.c
@@ -221,10 +221,10 @@ static struct scsi_host_template cumanascsi_template = {
221 .this_id = 7, 221 .this_id = 7,
222 .sg_tablesize = SG_ALL, 222 .sg_tablesize = SG_ALL,
223 .cmd_per_lun = 2, 223 .cmd_per_lun = 2,
224 .use_clustering = DISABLE_CLUSTERING,
225 .proc_name = "CumanaSCSI-1", 224 .proc_name = "CumanaSCSI-1",
226 .cmd_size = NCR5380_CMD_SIZE, 225 .cmd_size = NCR5380_CMD_SIZE,
227 .max_sectors = 128, 226 .max_sectors = 128,
227 .dma_boundary = PAGE_SIZE - 1,
228}; 228};
229 229
230static int cumanascsi1_probe(struct expansion_card *ec, 230static int cumanascsi1_probe(struct expansion_card *ec,
diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c
index 05b7f755499b..8f2efaab8d46 100644
--- a/drivers/scsi/arm/oak.c
+++ b/drivers/scsi/arm/oak.c
@@ -110,7 +110,7 @@ static struct scsi_host_template oakscsi_template = {
110 .this_id = 7, 110 .this_id = 7,
111 .sg_tablesize = SG_ALL, 111 .sg_tablesize = SG_ALL,
112 .cmd_per_lun = 2, 112 .cmd_per_lun = 2,
113 .use_clustering = DISABLE_CLUSTERING, 113 .dma_boundary = PAGE_SIZE - 1,
114 .proc_name = "oakscsi", 114 .proc_name = "oakscsi",
115 .cmd_size = NCR5380_CMD_SIZE, 115 .cmd_size = NCR5380_CMD_SIZE,
116 .max_sectors = 128, 116 .max_sectors = 128,
diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c
index 89f5154c40b6..a503dc50c4f8 100644
--- a/drivers/scsi/atari_scsi.c
+++ b/drivers/scsi/atari_scsi.c
@@ -714,7 +714,7 @@ static struct scsi_host_template atari_scsi_template = {
714 .eh_host_reset_handler = atari_scsi_host_reset, 714 .eh_host_reset_handler = atari_scsi_host_reset,
715 .this_id = 7, 715 .this_id = 7,
716 .cmd_per_lun = 2, 716 .cmd_per_lun = 2,
717 .use_clustering = DISABLE_CLUSTERING, 717 .dma_boundary = PAGE_SIZE - 1,
718 .cmd_size = NCR5380_CMD_SIZE, 718 .cmd_size = NCR5380_CMD_SIZE,
719}; 719};
720 720
diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
index bf07735275a4..8a20411699d9 100644
--- a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
+++ b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
@@ -95,7 +95,7 @@ static struct scsi_host_template cxgb3i_host_template = {
95 .eh_device_reset_handler = iscsi_eh_device_reset, 95 .eh_device_reset_handler = iscsi_eh_device_reset,
96 .eh_target_reset_handler = iscsi_eh_recover_target, 96 .eh_target_reset_handler = iscsi_eh_recover_target,
97 .target_alloc = iscsi_target_alloc, 97 .target_alloc = iscsi_target_alloc,
98 .use_clustering = DISABLE_CLUSTERING, 98 .dma_boundary = PAGE_SIZE - 1,
99 .this_id = -1, 99 .this_id = -1,
100 .track_queue_depth = 1, 100 .track_queue_depth = 1,
101}; 101};
diff --git a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
index 064ef5735182..762337de1116 100644
--- a/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
+++ b/drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
@@ -113,7 +113,7 @@ static struct scsi_host_template cxgb4i_host_template = {
113 .eh_device_reset_handler = iscsi_eh_device_reset, 113 .eh_device_reset_handler = iscsi_eh_device_reset,
114 .eh_target_reset_handler = iscsi_eh_recover_target, 114 .eh_target_reset_handler = iscsi_eh_recover_target,
115 .target_alloc = iscsi_target_alloc, 115 .target_alloc = iscsi_target_alloc,
116 .use_clustering = DISABLE_CLUSTERING, 116 .dma_boundary = PAGE_SIZE - 1,
117 .this_id = -1, 117 .this_id = -1,
118 .track_queue_depth = 1, 118 .track_queue_depth = 1,
119}; 119};
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index 8c55ec6e1827..13fbb2eab842 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -4631,7 +4631,7 @@ static struct scsi_host_template dc395x_driver_template = {
4631 .cmd_per_lun = DC395x_MAX_CMD_PER_LUN, 4631 .cmd_per_lun = DC395x_MAX_CMD_PER_LUN,
4632 .eh_abort_handler = dc395x_eh_abort, 4632 .eh_abort_handler = dc395x_eh_abort,
4633 .eh_bus_reset_handler = dc395x_eh_bus_reset, 4633 .eh_bus_reset_handler = dc395x_eh_bus_reset,
4634 .use_clustering = DISABLE_CLUSTERING, 4634 .dma_boundary = PAGE_SIZE - 1,
4635}; 4635};
4636 4636
4637 4637
diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c
index 003c3d726238..8db1cc552932 100644
--- a/drivers/scsi/dmx3191d.c
+++ b/drivers/scsi/dmx3191d.c
@@ -63,7 +63,7 @@ static struct scsi_host_template dmx3191d_driver_template = {
63 .this_id = 7, 63 .this_id = 7,
64 .sg_tablesize = SG_ALL, 64 .sg_tablesize = SG_ALL,
65 .cmd_per_lun = 2, 65 .cmd_per_lun = 2,
66 .use_clustering = DISABLE_CLUSTERING, 66 .dma_boundary = PAGE_SIZE - 1,
67 .cmd_size = NCR5380_CMD_SIZE, 67 .cmd_size = NCR5380_CMD_SIZE,
68}; 68};
69 69
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c
index fc538181f8df..9cdca0625498 100644
--- a/drivers/scsi/g_NCR5380.c
+++ b/drivers/scsi/g_NCR5380.c
@@ -700,7 +700,7 @@ static struct scsi_host_template driver_template = {
700 .this_id = 7, 700 .this_id = 7,
701 .sg_tablesize = SG_ALL, 701 .sg_tablesize = SG_ALL,
702 .cmd_per_lun = 2, 702 .cmd_per_lun = 2,
703 .use_clustering = DISABLE_CLUSTERING, 703 .dma_boundary = PAGE_SIZE - 1,
704 .cmd_size = NCR5380_CMD_SIZE, 704 .cmd_size = NCR5380_CMD_SIZE,
705 .max_sectors = 128, 705 .max_sectors = 128,
706}; 706};
diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c
index a27fc49ebd3a..d2acd0d826e2 100644
--- a/drivers/scsi/gvp11.c
+++ b/drivers/scsi/gvp11.c
@@ -184,7 +184,7 @@ static struct scsi_host_template gvp11_scsi_template = {
184 .this_id = 7, 184 .this_id = 7,
185 .sg_tablesize = SG_ALL, 185 .sg_tablesize = SG_ALL,
186 .cmd_per_lun = CMD_PER_LUN, 186 .cmd_per_lun = CMD_PER_LUN,
187 .use_clustering = DISABLE_CLUSTERING 187 .dma_boundary = PAGE_SIZE - 1,
188}; 188};
189 189
190static int check_wd33c93(struct gvp11_scsiregs *regs) 190static int check_wd33c93(struct gvp11_scsiregs *regs)
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index e8148ba414a3..fce0b5d7119e 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -431,7 +431,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
431 shost->sg_prot_tablesize = sht->sg_prot_tablesize; 431 shost->sg_prot_tablesize = sht->sg_prot_tablesize;
432 shost->cmd_per_lun = sht->cmd_per_lun; 432 shost->cmd_per_lun = sht->cmd_per_lun;
433 shost->unchecked_isa_dma = sht->unchecked_isa_dma; 433 shost->unchecked_isa_dma = sht->unchecked_isa_dma;
434 shost->use_clustering = sht->use_clustering;
435 shost->no_write_same = sht->no_write_same; 434 shost->no_write_same = sht->no_write_same;
436 435
437 if (shost_eh_deadline == -1 || !sht->eh_host_reset_handler) 436 if (shost_eh_deadline == -1 || !sht->eh_host_reset_handler)
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index 067725295083..e8bc8d328bab 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -6677,7 +6677,6 @@ ips_register_scsi(int index)
6677 sh->sg_tablesize = sh->hostt->sg_tablesize; 6677 sh->sg_tablesize = sh->hostt->sg_tablesize;
6678 sh->can_queue = sh->hostt->can_queue; 6678 sh->can_queue = sh->hostt->can_queue;
6679 sh->cmd_per_lun = sh->hostt->cmd_per_lun; 6679 sh->cmd_per_lun = sh->hostt->cmd_per_lun;
6680 sh->use_clustering = sh->hostt->use_clustering;
6681 sh->max_sectors = 128; 6680 sh->max_sectors = 128;
6682 6681
6683 sh->max_id = ha->ntargets; 6682 sh->max_id = ha->ntargets;
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 23354f206533..0175684a14dc 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -980,7 +980,7 @@ static struct scsi_host_template iscsi_sw_tcp_sht = {
980 .eh_abort_handler = iscsi_eh_abort, 980 .eh_abort_handler = iscsi_eh_abort,
981 .eh_device_reset_handler= iscsi_eh_device_reset, 981 .eh_device_reset_handler= iscsi_eh_device_reset,
982 .eh_target_reset_handler = iscsi_eh_recover_target, 982 .eh_target_reset_handler = iscsi_eh_recover_target,
983 .use_clustering = DISABLE_CLUSTERING, 983 .dma_boundary = PAGE_SIZE - 1,
984 .slave_alloc = iscsi_sw_tcp_slave_alloc, 984 .slave_alloc = iscsi_sw_tcp_slave_alloc,
985 .slave_configure = iscsi_sw_tcp_slave_configure, 985 .slave_configure = iscsi_sw_tcp_slave_configure,
986 .target_alloc = iscsi_target_alloc, 986 .target_alloc = iscsi_target_alloc,
diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c
index 764d320bb2ca..ee741207fd4e 100644
--- a/drivers/scsi/mac_esp.c
+++ b/drivers/scsi/mac_esp.c
@@ -307,7 +307,7 @@ static int esp_mac_probe(struct platform_device *dev)
307 goto fail; 307 goto fail;
308 308
309 host->max_id = 8; 309 host->max_id = 8;
310 host->use_clustering = DISABLE_CLUSTERING; 310 host->dma_boundary = PAGE_SIZE - 1;
311 esp = shost_priv(host); 311 esp = shost_priv(host);
312 312
313 esp->host = host; 313 esp->host = host;
diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c
index dd6057359d7c..8b4b5b1a13d7 100644
--- a/drivers/scsi/mac_scsi.c
+++ b/drivers/scsi/mac_scsi.c
@@ -333,7 +333,7 @@ static struct scsi_host_template mac_scsi_template = {
333 .this_id = 7, 333 .this_id = 7,
334 .sg_tablesize = 1, 334 .sg_tablesize = 1,
335 .cmd_per_lun = 2, 335 .cmd_per_lun = 2,
336 .use_clustering = DISABLE_CLUSTERING, 336 .dma_boundary = PAGE_SIZE - 1,
337 .cmd_size = NCR5380_CMD_SIZE, 337 .cmd_size = NCR5380_CMD_SIZE,
338 .max_sectors = 128, 338 .max_sectors = 128,
339}; 339};
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c
index d0c3f867fc58..dbe753fba486 100644
--- a/drivers/scsi/mvumi.c
+++ b/drivers/scsi/mvumi.c
@@ -2197,7 +2197,7 @@ static struct scsi_host_template mvumi_template = {
2197 .eh_timed_out = mvumi_timed_out, 2197 .eh_timed_out = mvumi_timed_out,
2198 .eh_host_reset_handler = mvumi_host_reset, 2198 .eh_host_reset_handler = mvumi_host_reset,
2199 .bios_param = mvumi_bios_param, 2199 .bios_param = mvumi_bios_param,
2200 .use_clustering = DISABLE_CLUSTERING, 2200 .dma_boundary = PAGE_SIZE - 1,
2201 .this_id = -1, 2201 .this_id = -1,
2202}; 2202};
2203 2203
diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c
index f1abe38e3b3a..1d6dbd77bd0e 100644
--- a/drivers/scsi/myrb.c
+++ b/drivers/scsi/myrb.c
@@ -2236,7 +2236,7 @@ struct scsi_host_template myrb_template = {
2236 .shost_attrs = myrb_shost_attrs, 2236 .shost_attrs = myrb_shost_attrs,
2237 .sdev_attrs = myrb_sdev_attrs, 2237 .sdev_attrs = myrb_sdev_attrs,
2238 .this_id = -1, 2238 .this_id = -1,
2239 .use_clustering = DISABLE_CLUSTERING, 2239 .dma_boundary = PAGE_SIZE - 1,
2240}; 2240};
2241 2241
2242/** 2242/**
diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c
index f47b36382afa..76a04cedfc83 100644
--- a/drivers/scsi/myrs.c
+++ b/drivers/scsi/myrs.c
@@ -1929,7 +1929,7 @@ struct scsi_host_template myrs_template = {
1929 .shost_attrs = myrs_shost_attrs, 1929 .shost_attrs = myrs_shost_attrs,
1930 .sdev_attrs = myrs_sdev_attrs, 1930 .sdev_attrs = myrs_sdev_attrs,
1931 .this_id = -1, 1931 .this_id = -1,
1932 .use_clustering = DISABLE_CLUSTERING, 1932 .dma_boundary = PAGE_SIZE - 1,
1933}; 1933};
1934 1934
1935static struct myrs_hba *myrs_alloc_host(struct pci_dev *pdev, 1935static struct myrs_hba *myrs_alloc_host(struct pci_dev *pdev,
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
index 5aac3e801903..00e3cbee55b8 100644
--- a/drivers/scsi/nsp32.c
+++ b/drivers/scsi/nsp32.c
@@ -274,7 +274,7 @@ static struct scsi_host_template nsp32_template = {
274 .sg_tablesize = NSP32_SG_SIZE, 274 .sg_tablesize = NSP32_SG_SIZE,
275 .max_sectors = 128, 275 .max_sectors = 128,
276 .this_id = NSP32_HOST_SCSIID, 276 .this_id = NSP32_HOST_SCSIID,
277 .use_clustering = DISABLE_CLUSTERING, 277 .dma_boundary = PAGE_SIZE - 1,
278 .eh_abort_handler = nsp32_eh_abort, 278 .eh_abort_handler = nsp32_eh_abort,
279 .eh_host_reset_handler = nsp32_eh_host_reset, 279 .eh_host_reset_handler = nsp32_eh_host_reset,
280/* .highmem_io = 1, */ 280/* .highmem_io = 1, */
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c
index f3230494a8c9..1bd6825a4f14 100644
--- a/drivers/scsi/pcmcia/nsp_cs.c
+++ b/drivers/scsi/pcmcia/nsp_cs.c
@@ -86,7 +86,7 @@ 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 .use_clustering = DISABLE_CLUSTERING, 89 .dma_boundary = PAGE_SIZE - 1,
90}; 90};
91 91
92static nsp_hw_data nsp_data_base; /* attach <-> detect glue */ 92static nsp_hw_data nsp_data_base; /* attach <-> detect glue */
diff --git a/drivers/scsi/pcmcia/qlogic_stub.c b/drivers/scsi/pcmcia/qlogic_stub.c
index 173351a8554b..828d53faf09a 100644
--- a/drivers/scsi/pcmcia/qlogic_stub.c
+++ b/drivers/scsi/pcmcia/qlogic_stub.c
@@ -72,7 +72,7 @@ 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 .use_clustering = DISABLE_CLUSTERING, 75 .dma_boundary = PAGE_SIZE - 1,
76}; 76};
77 77
78/*====================================================================*/ 78/*====================================================================*/
diff --git a/drivers/scsi/qlogicfas.c b/drivers/scsi/qlogicfas.c
index 95431d605c24..8f709002f746 100644
--- a/drivers/scsi/qlogicfas.c
+++ b/drivers/scsi/qlogicfas.c
@@ -193,7 +193,7 @@ 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 .use_clustering = DISABLE_CLUSTERING, 196 .dma_boundary = PAGE_SIZE - 1,
197}; 197};
198 198
199static __init int qlogicfas_init(void) 199static __init int qlogicfas_init(void)
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 57d418d7d74e..16cab45c0439 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -5866,7 +5866,8 @@ static int sdebug_driver_probe(struct device *dev)
5866 5866
5867 sdebug_driver_template.can_queue = sdebug_max_queue; 5867 sdebug_driver_template.can_queue = sdebug_max_queue;
5868 if (!sdebug_clustering) 5868 if (!sdebug_clustering)
5869 sdebug_driver_template.use_clustering = DISABLE_CLUSTERING; 5869 sdebug_driver_template.dma_boundary = PAGE_SIZE - 1;
5870
5870 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host)); 5871 hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host));
5871 if (NULL == hpnt) { 5872 if (NULL == hpnt) {
5872 pr_err("scsi_host_alloc failed\n"); 5873 pr_err("scsi_host_alloc failed\n");
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 2d4fd6b4bd92..966b7cfebdf8 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2230,9 +2230,6 @@ void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q)
2230 blk_queue_max_segment_size(q, 2230 blk_queue_max_segment_size(q,
2231 min(shost->max_segment_size, dma_get_max_seg_size(dev))); 2231 min(shost->max_segment_size, dma_get_max_seg_size(dev)));
2232 2232
2233 if (shost->use_clustering == DISABLE_CLUSTERING)
2234 q->limits.cluster = 0;
2235
2236 /* 2233 /*
2237 * Set a reasonable default alignment: The larger of 32-byte (dword), 2234 * Set a reasonable default alignment: The larger of 32-byte (dword),
2238 * which is a common minimum for HBAs, and the minimum DMA alignment, 2235 * which is a common minimum for HBAs, and the minimum DMA alignment,
diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c
index 5ed696dc9bbd..713bce998b0e 100644
--- a/drivers/scsi/sgiwd93.c
+++ b/drivers/scsi/sgiwd93.c
@@ -208,7 +208,7 @@ static struct scsi_host_template sgiwd93_template = {
208 .this_id = 7, 208 .this_id = 7,
209 .sg_tablesize = SG_ALL, 209 .sg_tablesize = SG_ALL,
210 .cmd_per_lun = 8, 210 .cmd_per_lun = 8,
211 .use_clustering = DISABLE_CLUSTERING, 211 .dma_boundary = PAGE_SIZE - 1,
212}; 212};
213 213
214static int sgiwd93_probe(struct platform_device *pdev) 214static int sgiwd93_probe(struct platform_device *pdev)
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index af9078320d4b..f6bef7ad65e7 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1489,7 +1489,7 @@ static struct scsi_host_template driver_template = {
1489 .eh_abort_handler = stex_abort, 1489 .eh_abort_handler = stex_abort,
1490 .eh_host_reset_handler = stex_reset, 1490 .eh_host_reset_handler = stex_reset,
1491 .this_id = -1, 1491 .this_id = -1,
1492 .use_clustering = DISABLE_CLUSTERING, 1492 .dma_boundary = PAGE_SIZE - 1,
1493}; 1493};
1494 1494
1495static struct pci_device_id stex_pci_tbl[] = { 1495static struct pci_device_id stex_pci_tbl[] = {
diff --git a/drivers/scsi/sun3_scsi.c b/drivers/scsi/sun3_scsi.c
index 9492638296c8..95a7ea7eefa0 100644
--- a/drivers/scsi/sun3_scsi.c
+++ b/drivers/scsi/sun3_scsi.c
@@ -500,7 +500,7 @@ static struct scsi_host_template sun3_scsi_template = {
500 .this_id = 7, 500 .this_id = 7,
501 .sg_tablesize = SG_NONE, 501 .sg_tablesize = SG_NONE,
502 .cmd_per_lun = 2, 502 .cmd_per_lun = 2,
503 .use_clustering = DISABLE_CLUSTERING, 503 .dma_boundary = PAGE_SIZE - 1,
504 .cmd_size = NCR5380_CMD_SIZE, 504 .cmd_size = NCR5380_CMD_SIZE,
505}; 505};
506 506
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index e5800da0053d..34be397da0f3 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -6982,7 +6982,7 @@ static struct scsi_host_template ufshcd_driver_template = {
6982 .max_host_blocked = 1, 6982 .max_host_blocked = 1,
6983 .track_queue_depth = 1, 6983 .track_queue_depth = 1,
6984 .sdev_groups = ufshcd_driver_groups, 6984 .sdev_groups = ufshcd_driver_groups,
6985 .use_clustering = DISABLE_CLUSTERING, 6985 .dma_boundary = PAGE_SIZE - 1,
6986}; 6986};
6987 6987
6988static int ufshcd_config_vreg_load(struct device *dev, struct ufs_vreg *vreg, 6988static int ufshcd_config_vreg_load(struct device *dev, struct ufs_vreg *vreg,
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c
index b0991e86587f..7bd7c0c0db6f 100644
--- a/drivers/target/loopback/tcm_loop.c
+++ b/drivers/target/loopback/tcm_loop.c
@@ -324,7 +324,7 @@ static struct scsi_host_template tcm_loop_driver_template = {
324 .sg_tablesize = 256, 324 .sg_tablesize = 256,
325 .cmd_per_lun = 1024, 325 .cmd_per_lun = 1024,
326 .max_sectors = 0xFFFF, 326 .max_sectors = 0xFFFF,
327 .use_clustering = DISABLE_CLUSTERING, 327 .dma_boundary = PAGE_SIZE - 1,
328 .slave_alloc = tcm_loop_slave_alloc, 328 .slave_alloc = tcm_loop_slave_alloc,
329 .module = THIS_MODULE, 329 .module = THIS_MODULE,
330 .track_queue_depth = 1, 330 .track_queue_depth = 1,
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 6c75a0a50b3a..36742e8e7edc 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -879,7 +879,7 @@ static struct scsi_host_template uas_host_template = {
879 .this_id = -1, 879 .this_id = -1,
880 .sg_tablesize = SG_NONE, 880 .sg_tablesize = SG_NONE,
881 .skip_settle_delay = 1, 881 .skip_settle_delay = 1,
882 .use_clustering = DISABLE_CLUSTERING, 882 .dma_boundary = PAGE_SIZE - 1,
883}; 883};
884 884
885#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, \ 885#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, \
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h
index 834204681ca3..7ba34a0ca8bf 100644
--- a/include/scsi/scsi_host.h
+++ b/include/scsi/scsi_host.h
@@ -44,8 +44,6 @@ struct blk_queue_tags;
44#define MODE_INITIATOR 0x01 44#define MODE_INITIATOR 0x01
45#define MODE_TARGET 0x02 45#define MODE_TARGET 0x02
46 46
47#define DISABLE_CLUSTERING (-1)
48
49struct scsi_host_template { 47struct scsi_host_template {
50 struct module *module; 48 struct module *module;
51 const char *name; 49 const char *name;
@@ -419,16 +417,6 @@ struct scsi_host_template {
419 unsigned unchecked_isa_dma:1; 417 unsigned unchecked_isa_dma:1;
420 418
421 /* 419 /*
422 * True if this host adapter can make good use of clustering.
423 * I originally thought that if the tablesize was large that it
424 * was a waste of CPU cycles to prepare a cluster list, but
425 * it works out that the Buslogic is faster if you use a smaller
426 * number of segments (i.e. use clustering). I guess it is
427 * inefficient.
428 */
429 unsigned use_clustering:1;
430
431 /*
432 * True for emulated SCSI host adapters (e.g. ATAPI). 420 * True for emulated SCSI host adapters (e.g. ATAPI).
433 */ 421 */
434 unsigned emulated:1; 422 unsigned emulated:1;
@@ -626,7 +614,6 @@ struct Scsi_Host {
626 614
627 unsigned active_mode:2; 615 unsigned active_mode:2;
628 unsigned unchecked_isa_dma:1; 616 unsigned unchecked_isa_dma:1;
629 unsigned use_clustering:1;
630 617
631 /* 618 /*
632 * Host has requested that no further requests come through for the 619 * Host has requested that no further requests come through for the