|
|
Log in / Subscribe / Register

atomic queue limit updates for md v4

From:  Christoph Hellwig <hch-AT-lst.de>
To:  Jens Axboe <axboe-AT-kernel.dk>, Mike Snitzer <snitzer-AT-kernel.org>, Mikulas Patocka <mpatocka-AT-redhat.com>, Song Liu <song-AT-kernel.org>, Yu Kuai <yukuai3-AT-huawei.com>
Subject:  atomic queue limit updates for md v4
Date:  Sun, 03 Mar 2024 07:01:39 -0700
Message-ID:  <20240303140150.5435-1-hch@lst.de>
Cc:  dm-devel-AT-lists.linux.dev, linux-block-AT-vger.kernel.org, linux-raid-AT-vger.kernel.org
Archive-link:  Article

Hi all,

This converts md to the atomic queue limits update API.  It passes
the mdadm and lvm2 test suites without regressions.

Changes since v3:
 - drop the already merged core block layer and dm patches
 - sort out a minor conflict after rebasing to the latest block tree

Changes since v2:
 - drop drbd from this series again for now as we've not made any
   review progress
 - keep the NULL gendisk checks for DM-mapped MD devices, and add a few
   helpers to better document and abstract them
 - use mddev_suspend instead of blk_mq_freeze_queue around updating
   io_opt

Changes since v1:
 - a few kerneldoc fixes
 - fix a line remove after testing in raid0
 - also add drbd

Diffstat:
 block/blk-settings.c   |   24 ------
 drivers/md/md-bitmap.c |    9 --
 drivers/md/md.c        |   89 ++++++++++++++++++-------
 drivers/md/md.h        |   28 +++++++
 drivers/md/raid0.c     |   42 ++++++-----
 drivers/md/raid1.c     |   51 ++++++--------
 drivers/md/raid10.c    |   85 +++++++++++------------
 drivers/md/raid5-ppl.c |    3 
 drivers/md/raid5.c     |  174 +++++++++++++++++++++++--------------------------
 include/linux/blkdev.h |    2 
 10 files changed, 265 insertions(+), 242 deletions(-)



Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds