Skip to content

Commit 4af14d1

Browse files
Christoph Hellwigmartinkpetersen
authored andcommitted
scsi: remove the use_clustering flag
The same effects can be achieved by setting the dma_boundary to PAGE_SIZE - 1 and the max_segment_size to PAGE_SIZE, so shift those settings into the drivers. Note that in many cases the setting might be bogus, but this keeps the status quo. [mkp: fix myrs and myrb] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1c3726a commit 4af14d1

File tree

37 files changed

+34
-53
lines changed

37 files changed

+34
-53
lines changed

Documentation/scsi/scsi_mid_low_api.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,6 @@ of interest:
10981098
unchecked_isa_dma - 1=>only use bottom 16 MB of ram (ISA DMA addressing
10991099
restriction), 0=>can use full 32 bit (or better) DMA
11001100
address space
1101-
use_clustering - 1=>SCSI commands in mid level's queue can be merged,
1102-
0=>disallow SCSI command merging
11031101
no_async_abort - 1=>Asynchronous aborts are not supported
11041102
0=>Timed-out commands will be aborted asynchronously
11051103
hostt - pointer to driver's struct scsi_host_template from which

arch/ia64/hp/sim/simscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static struct scsi_host_template driver_template = {
347347
.sg_tablesize = SG_ALL,
348348
.max_sectors = 1024,
349349
.cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN,
350-
.use_clustering = DISABLE_CLUSTERING,
350+
.dma_boundary = PAGE_SIZE - 1,
351351
};
352352

353353
static int __init

drivers/scsi/a2091.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static struct scsi_host_template a2091_scsi_template = {
160160
.this_id = 7,
161161
.sg_tablesize = SG_ALL,
162162
.cmd_per_lun = CMD_PER_LUN,
163-
.use_clustering = DISABLE_CLUSTERING
163+
.dma_boundary = PAGE_SIZE - 1,
164164
};
165165

166166
static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent)

drivers/scsi/advansys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,8 +3192,8 @@ static void asc_prt_driver_conf(struct seq_file *m, struct Scsi_Host *shost)
31923192
shost->sg_tablesize, shost->cmd_per_lun);
31933193

31943194
seq_printf(m,
3195-
" unchecked_isa_dma %d, use_clustering %d\n",
3196-
shost->unchecked_isa_dma, shost->use_clustering);
3195+
" unchecked_isa_dma %d\n",
3196+
shost->unchecked_isa_dma);
31973197

31983198
seq_printf(m,
31993199
" flags 0x%x, last_reset 0x%lx, jiffies 0x%lx, asc_n_io_port 0x%x\n",

drivers/scsi/aha152x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@ static struct scsi_host_template aha152x_driver_template = {
29202920
.can_queue = 1,
29212921
.this_id = 7,
29222922
.sg_tablesize = SG_ALL,
2923-
.use_clustering = DISABLE_CLUSTERING,
2923+
.dma_boundary = PAGE_SIZE - 1,
29242924
.slave_alloc = aha152x_adjust_queue,
29252925
};
29262926

drivers/scsi/arm/acornscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ static struct scsi_host_template acornscsi_template = {
28902890
.this_id = 7,
28912891
.sg_tablesize = SG_ALL,
28922892
.cmd_per_lun = 2,
2893-
.use_clustering = DISABLE_CLUSTERING,
2893+
.dma_boundary = PAGE_SIZE - 1,
28942894
.proc_name = "acornscsi",
28952895
};
28962896

drivers/scsi/arm/arxescsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static struct scsi_host_template arxescsi_template = {
245245
.can_queue = 0,
246246
.this_id = 7,
247247
.sg_tablesize = SG_ALL,
248-
.use_clustering = DISABLE_CLUSTERING,
248+
.dma_boundary = PAGE_SIZE - 1,
249249
.proc_name = "arxescsi",
250250
};
251251

drivers/scsi/arm/cumana_1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ static struct scsi_host_template cumanascsi_template = {
221221
.this_id = 7,
222222
.sg_tablesize = SG_ALL,
223223
.cmd_per_lun = 2,
224-
.use_clustering = DISABLE_CLUSTERING,
225224
.proc_name = "CumanaSCSI-1",
226225
.cmd_size = NCR5380_CMD_SIZE,
227226
.max_sectors = 128,
227+
.dma_boundary = PAGE_SIZE - 1,
228228
};
229229

230230
static int cumanascsi1_probe(struct expansion_card *ec,

drivers/scsi/arm/oak.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static struct scsi_host_template oakscsi_template = {
110110
.this_id = 7,
111111
.sg_tablesize = SG_ALL,
112112
.cmd_per_lun = 2,
113-
.use_clustering = DISABLE_CLUSTERING,
113+
.dma_boundary = PAGE_SIZE - 1,
114114
.proc_name = "oakscsi",
115115
.cmd_size = NCR5380_CMD_SIZE,
116116
.max_sectors = 128,

drivers/scsi/atari_scsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ static struct scsi_host_template atari_scsi_template = {
714714
.eh_host_reset_handler = atari_scsi_host_reset,
715715
.this_id = 7,
716716
.cmd_per_lun = 2,
717-
.use_clustering = DISABLE_CLUSTERING,
717+
.dma_boundary = PAGE_SIZE - 1,
718718
.cmd_size = NCR5380_CMD_SIZE,
719719
};
720720

0 commit comments

Comments
 (0)