aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-13 16:17:02 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-12-18 23:13:12 -0500
commit2a3d4eb8e228061c09d5ca8bf39e7f00c2091213 (patch)
tree867ce9fbb2ecee876580bb728ef3affb3e1b41d3 /drivers/scsi/scsi_lib.c
parentscsi: make sure all drivers set the use_clustering flag (diff)
downloadlinux-dev-2a3d4eb8e228061c09d5ca8bf39e7f00c2091213.tar.xz
linux-dev-2a3d4eb8e228061c09d5ca8bf39e7f00c2091213.zip
scsi: flip the default on use_clustering
Most SCSI drivers want to enable "clustering", that is merging of segments so that they might span more than a single page. Remove the ENABLE_CLUSTERING define, and require drivers to explicitly set DISABLE_CLUSTERING to disable this feature. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index c7fccbb8f554..f6900e0b3024 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2229,7 +2229,7 @@ void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q)
blk_queue_max_segment_size(q, dma_get_max_seg_size(dev));
- if (!shost->use_clustering)
+ if (shost->use_clustering == DISABLE_CLUSTERING)
q->limits.cluster = 0;
/*