Skip to content

Commit d3f46f3

Browse files
committed
[SCSI] remove use_sg_chaining
With the sg table code, every SCSI driver is now either chain capable or broken (or has sg_tablesize set so chaining is never activated), so there's no need to have a check in the host template. Also tidy up the code by moving the scatterlist size defines into the SCSI includes and permit the last entry of the scatterlist pools not to be a power of two. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent b8de163 commit d3f46f3

43 files changed

Lines changed: 37 additions & 111 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/ia64/hp/sim/simscsi.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ static struct scsi_host_template driver_template = {
360360
.max_sectors = 1024,
361361
.cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN,
362362
.use_clustering = DISABLE_CLUSTERING,
363-
.use_sg_chaining = ENABLE_SG_CHAINING,
364363
};
365364

366365
static int __init

‎drivers/infiniband/ulp/srp/ib_srp.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,6 @@ static struct scsi_host_template srp_template = {
15711571
.this_id = -1,
15721572
.cmd_per_lun = SRP_SQ_SIZE,
15731573
.use_clustering = ENABLE_CLUSTERING,
1574-
.use_sg_chaining = ENABLE_SG_CHAINING,
15751574
.shost_attrs = srp_host_attrs
15761575
};
15771576

‎drivers/scsi/3w-9xxx.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,6 @@ static struct scsi_host_template driver_template = {
19901990
.max_sectors = TW_MAX_SECTORS,
19911991
.cmd_per_lun = TW_MAX_CMDS_PER_LUN,
19921992
.use_clustering = ENABLE_CLUSTERING,
1993-
.use_sg_chaining = ENABLE_SG_CHAINING,
19941993
.shost_attrs = twa_host_attrs,
19951994
.emulated = 1
19961995
};

‎drivers/scsi/3w-xxxx.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2261,7 +2261,6 @@ static struct scsi_host_template driver_template = {
22612261
.max_sectors = TW_MAX_SECTORS,
22622262
.cmd_per_lun = TW_MAX_CMDS_PER_LUN,
22632263
.use_clustering = ENABLE_CLUSTERING,
2264-
.use_sg_chaining = ENABLE_SG_CHAINING,
22652264
.shost_attrs = tw_host_attrs,
22662265
.emulated = 1
22672266
};

‎drivers/scsi/BusLogic.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3575,7 +3575,6 @@ static struct scsi_host_template Bus_Logic_template = {
35753575
.unchecked_isa_dma = 1,
35763576
.max_sectors = 128,
35773577
.use_clustering = ENABLE_CLUSTERING,
3578-
.use_sg_chaining = ENABLE_SG_CHAINING,
35793578
};
35803579

35813580
/*

‎drivers/scsi/NCR53c406a.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,6 @@ static struct scsi_host_template driver_template =
10651065
.cmd_per_lun = 1 /* commands per lun */,
10661066
.unchecked_isa_dma = 1 /* unchecked_isa_dma */,
10671067
.use_clustering = ENABLE_CLUSTERING,
1068-
.use_sg_chaining = ENABLE_SG_CHAINING,
10691068
};
10701069

10711070
#include "scsi_module.c"

‎drivers/scsi/a100u2w.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,6 @@ static struct scsi_host_template inia100_template = {
10711071
.sg_tablesize = SG_ALL,
10721072
.cmd_per_lun = 1,
10731073
.use_clustering = ENABLE_CLUSTERING,
1074-
.use_sg_chaining = ENABLE_SG_CHAINING,
10751074
};
10761075

10771076
static int __devinit inia100_probe_one(struct pci_dev *pdev,

‎drivers/scsi/aacraid/linit.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,6 @@ static struct scsi_host_template aac_driver_template = {
10321032
.cmd_per_lun = AAC_NUM_IO_FIB,
10331033
#endif
10341034
.use_clustering = ENABLE_CLUSTERING,
1035-
.use_sg_chaining = ENABLE_SG_CHAINING,
10361035
.emulated = 1,
10371036
};
10381037

‎drivers/scsi/aha1740.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ static struct scsi_host_template aha1740_template = {
563563
.sg_tablesize = AHA1740_SCATTER,
564564
.cmd_per_lun = AHA1740_CMDLUN,
565565
.use_clustering = ENABLE_CLUSTERING,
566-
.use_sg_chaining = ENABLE_SG_CHAINING,
567566
.eh_abort_handler = aha1740_eh_abort_handler,
568567
};
569568

‎drivers/scsi/aic7xxx/aic79xx_osm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@ struct scsi_host_template aic79xx_driver_template = {
766766
.max_sectors = 8192,
767767
.cmd_per_lun = 2,
768768
.use_clustering = ENABLE_CLUSTERING,
769-
.use_sg_chaining = ENABLE_SG_CHAINING,
770769
.slave_alloc = ahd_linux_slave_alloc,
771770
.slave_configure = ahd_linux_slave_configure,
772771
.target_alloc = ahd_linux_target_alloc,

0 commit comments

Comments
 (0)