public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: Jens Axboe <axboe@kernel.dk>, linux-block@vger.kernel.org
Subject: [PATCH v3 0/8] Improve zoned (SMR) HDD write throughput
Date: Fri, 27 Feb 2026 10:49:43 +0900	[thread overview]
Message-ID: <20260227014951.2327711-1-dlemoal@kernel.org> (raw)

Jens,

This patch series cleans up the zone write plugging code and introduces
the ability to issue all write BIOs from a single context (a kthread)
instead of allowing multiple zones to be written at the same time using
a per zone work. As shown in patch 6, raw block device tests and XFS
tests with an SMR HDD show that this can significantly increase write
throughput (up to 40% over the current zone write plugging).

Changes from v2:
 - Modified patch 1 slightly to not restore dead zones and instead check
   for such state in the BIO submission path and fail BIOs that are
   submitted to dead zones as that represents an erroneous use of zones.
 - Added patch 3
 - Added review tags.

Changes from v1:
 - Reworked patch 1 to remove the fragile use of refcount_read. Zone
   write plug removal is now more solid by being controlled with
   refcount_dec_and_test().
 - Changed patch 2 to keep the refcount increase before scheduling the
   BIO work but drop that reference if scheduling the work did nothing.
 - Dropped the patch "block: remove BLK_ZONE_WPLUG_UNHASHED" as the
   patch 1 changes make it unnecessary.
 - Modified patch 5 to have the zoned_qd1_writes attribute visible only
   for zoned block devices.
 - Added review tags

Damien Le Moal (8):
  block: fix zone write plug removal
  block: fix zone write plugs refcount handling in
    disk_zone_wplug_schedule_bio_work()
  block: rename and simplify disk_get_and_lock_zone_wplug()
  block: remove disk_zone_is_full()
  block: rename struct gendisk zone_wplugs_lock field
  block: allow submitting all zone writes from a single context
  block: default to QD=1 writes for blk-mq rotational zoned devices
  Documentation: ABI: stable: document the zoned_qd1_writes attribute

 Documentation/ABI/stable/sysfs-block |  15 +
 block/blk-mq-debugfs.c               |   1 +
 block/blk-sysfs.c                    |  46 ++-
 block/blk-zoned.c                    | 402 +++++++++++++++++----------
 include/linux/blkdev.h               |  10 +-
 5 files changed, 323 insertions(+), 151 deletions(-)

-- 
2.53.0


             reply	other threads:[~2026-02-27  1:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27  1:49 Damien Le Moal [this message]
2026-02-27  1:49 ` [PATCH v3 1/8] block: fix zone write plug removal Damien Le Moal
2026-02-27  9:22   ` Johannes Thumshirn
2026-02-27  9:40     ` Damien Le Moal
2026-02-27  9:44       ` Johannes Thumshirn
2026-02-27 13:48   ` Christoph Hellwig
2026-03-02  7:20   ` Hannes Reinecke
2026-02-27  1:49 ` [PATCH v3 2/8] block: fix zone write plugs refcount handling in disk_zone_wplug_schedule_bio_work() Damien Le Moal
2026-02-27  9:23   ` Johannes Thumshirn
2026-03-02  7:21   ` Hannes Reinecke
2026-02-27  1:49 ` [PATCH v3 3/8] block: rename and simplify disk_get_and_lock_zone_wplug() Damien Le Moal
2026-02-27  9:32   ` Johannes Thumshirn
2026-02-27 13:48   ` Christoph Hellwig
2026-03-02  7:22   ` Hannes Reinecke
2026-02-27  1:49 ` [PATCH v3 4/8] block: remove disk_zone_is_full() Damien Le Moal
2026-02-27  1:49 ` [PATCH v3 5/8] block: rename struct gendisk zone_wplugs_lock field Damien Le Moal
2026-02-27  1:49 ` [PATCH v3 6/8] block: allow submitting all zone writes from a single context Damien Le Moal
2026-02-27  9:41   ` Johannes Thumshirn
2026-03-02  7:23   ` Hannes Reinecke
2026-02-27  1:49 ` [PATCH v3 7/8] block: default to QD=1 writes for blk-mq rotational zoned devices Damien Le Moal
2026-02-27  9:48   ` Johannes Thumshirn
2026-02-27  1:49 ` [PATCH v3 8/8] Documentation: ABI: stable: document the zoned_qd1_writes attribute Damien Le Moal
2026-02-27  9:51   ` Johannes Thumshirn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260227014951.2327711-1-dlemoal@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox