linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] Elevator cleanups and improvements
@ 2019-08-23  0:15 Damien Le Moal
  2019-08-23  0:15 ` [PATCH 1/7] block: Cleanup elevator_init_mq() use Damien Le Moal
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Damien Le Moal @ 2019-08-23  0:15 UTC (permalink / raw)
  To: linux-block, Jens Axboe

This patch series implements some cleanup of the elevator initialization
code and introduces elevator features identification and device matching
to enhance checks for elevator/device compatibility and fitness.

The first 3 patches of the series are simple cleanups which simplify and
streamline elevator initialization for newly allocated device queues.

The following two patches introduce elevator features control which
allow defining features and function that an elevator supports and match
these against features required by a block device driver. With this, the
sysfs elevator list for a device always only shows elevators matching
the features that a particular device requires, with the exception of
the none elevator which has no features but is always available for use
with any device.

The first feature defined is for zoned block device write order control
through zone write locking which prevents the use of any scheduler that
does not support this feature with zoned devices.

The last 2 patches of this series rework the default elevator selection
and initialization to allow for the feature matching to work,
simultaneously addressing cases not currently well supported, namely,
multi-queue zoned block devices.

Damien Le Moal (7):
  block: Cleanup elevator_init_mq() use
  block: Change elevator_init_mq() to always succeed
  block: Remove sysfs lock from elevator_init_rq()
  block: Introduce elevator features
  block: Introduce zoned block device elevator feature
  block: Improve default elevator selection
  block: Delay default elevator initialization

 block/blk-mq.c                |  10 ---
 block/blk-settings.c          |  15 ++++
 block/blk.h                   |   2 +-
 block/elevator.c              | 144 +++++++++++++++++++++++++---------
 block/genhd.c                 |   3 +
 block/mq-deadline.c           |   1 +
 drivers/block/null_blk_main.c |   5 ++
 drivers/scsi/sd_zbc.c         |   2 +
 include/linux/blkdev.h        |   4 +
 include/linux/elevator.h      |   8 ++
 10 files changed, 147 insertions(+), 47 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2019-08-23 20:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-23  0:15 [PATCH 0/7] Elevator cleanups and improvements Damien Le Moal
2019-08-23  0:15 ` [PATCH 1/7] block: Cleanup elevator_init_mq() use Damien Le Moal
2019-08-23  8:08   ` Johannes Thumshirn
2019-08-23  0:15 ` [PATCH 2/7] block: Change elevator_init_mq() to always succeed Damien Le Moal
2019-08-23  8:54   ` Johannes Thumshirn
2019-08-23  0:15 ` [PATCH 3/7] block: Remove sysfs lock from elevator_init_rq() Damien Le Moal
2019-08-23  9:00   ` Johannes Thumshirn
2019-08-23 20:32   ` Bart Van Assche
2019-08-23  0:15 ` [PATCH 4/7] block: Introduce elevator features Damien Le Moal
2019-08-23 11:19   ` Johannes Thumshirn
2019-08-23  0:15 ` [PATCH 5/7] block: Introduce zoned block device elevator feature Damien Le Moal
2019-08-23 11:41   ` Johannes Thumshirn
2019-08-23  0:15 ` [PATCH 6/7] block: Improve default elevator selection Damien Le Moal
2019-08-23  0:15 ` [PATCH 7/7] block: Delay default elevator initialization Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).