All of lore.kernel.org
 help / color / mirror / Atom feed
* remove the "clustering" flag V2
@ 2018-12-13 15:17 Christoph Hellwig
  2018-12-13 15:17 ` [PATCH 01/10] scsi: make sure all drivers set the use_clustering flag Christoph Hellwig
                   ` (10 more replies)
  0 siblings, 11 replies; 19+ messages in thread
From: Christoph Hellwig @ 2018-12-13 15:17 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Jens Axboe, Ming Lei, Hannes Reinecke, Paul Mackerras,
	Juergen Gross, linux-scsi, linux-block

The block layer has been carrying around a magic clustering flag,
which is an artefact of prehistoric scsi layer design decisions.

Originally it controller if any segment merging happens at all for a
given LLLD, but with merging moving to the block layer and massively
more complex now it now essentically means that no segment shall be
larger than a page, and no segment shall cross a page boundary if
clustering is not enabled.  Unfortunately the SCSI layer historically
defaults to disabled clustering, but fortunately most drivers actually
enable it, and very few drivers do not set an explicit flag.

So this series first flips the default to be sensible, and then replaces
the magic flag with setting an explicit dma boundary and max segment
size to reuse the existing mechanisms.  It also fixes up a few drivers
where the no clustering setting was clearly bogus, although we can
probably lift these limits for others as well eventually.

Changes since V1:
 - split a patch into two
 - collected a few acks
 - fixed a changelog typo
 - only set the segment boundary, the max segment size is redundant
 - don't set dma_boundary twice in two drivers

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2018-12-19  7:28 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-13 15:17 remove the "clustering" flag V2 Christoph Hellwig
2018-12-13 15:17 ` [PATCH 01/10] scsi: make sure all drivers set the use_clustering flag Christoph Hellwig
2018-12-13 15:17 ` [PATCH 02/10] scsi: flip the default on use_clustering Christoph Hellwig
2018-12-13 15:17 ` [PATCH 03/10] scsi: introduce a max_segment_size host_template parameters Christoph Hellwig
2018-12-13 15:17 ` [PATCH 04/10] cumana_2: remove the explicit use_clustering setting Christoph Hellwig
2018-12-13 15:17 ` [PATCH 05/10] powertec: " Christoph Hellwig
2018-12-13 15:17 ` [PATCH 06/10] xen-scsifront: remove DISABLE_CLUSTERING Christoph Hellwig
2018-12-18  8:23   ` Juergen Gross
2018-12-13 15:17 ` [PATCH 07/10] mesh: " Christoph Hellwig
2018-12-13 15:17 ` [PATCH 08/10] mac53c94: " Christoph Hellwig
2018-12-13 15:17 ` [PATCH 09/10] scsi: remove the use_clustering flag Christoph Hellwig
2018-12-13 15:17 ` [PATCH 10/10] block: remove the cluster flag Christoph Hellwig
2018-12-18  7:08 ` remove the "clustering" flag V2 Christoph Hellwig
2018-12-18  7:47   ` Hannes Reinecke
2018-12-18 16:29     ` Christoph Hellwig
2018-12-19  4:23   ` Martin K. Petersen
2018-12-19  4:31     ` Jens Axboe
2018-12-19  4:39       ` Martin K. Petersen
2018-12-19  7:28     ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.