summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-13 16:17:09 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-12-18 23:19:21 -0500
commit4af14d113bcf95c12d1462ba623b7e7117bd3fb3 (patch)
treedc47d35c7adea6f5d250ad9206a653b322568123 /drivers/scsi/scsi_debug.c
parent1c3726ad30938725a53f471d7967abfd6838330f (diff)
downloadlinux-stable-4af14d113bcf95c12d1462ba623b7e7117bd3fb3.tar.gz
linux-stable-4af14d113bcf95c12d1462ba623b7e7117bd3fb3.tar.bz2
linux-stable-4af14d113bcf95c12d1462ba623b7e7117bd3fb3.zip
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>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
-rw-r--r--drivers/scsi/scsi_debug.c3
1 files changed, 2 insertions, 1 deletions
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)
sdebug_driver_template.can_queue = sdebug_max_queue;
if (!sdebug_clustering)
- sdebug_driver_template.use_clustering = DISABLE_CLUSTERING;
+ sdebug_driver_template.dma_boundary = PAGE_SIZE - 1;
+
hpnt = scsi_host_alloc(&sdebug_driver_template, sizeof(sdbg_host));
if (NULL == hpnt) {
pr_err("scsi_host_alloc failed\n");