linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bart Van Assche <bvanassche@acm.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
	Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH v4 0/8] Improve changing the number of hardware queues
Date: Mon,  9 Mar 2020 21:26:15 -0700	[thread overview]
Message-ID: <20200310042623.20779-1-bvanassche@acm.org> (raw)

Hi Jens,

These patches are what I came up with while analyzing syzbot and blktests
complaints related to dynamically changing the number of hardware queues.
Please consider these patches for the upstream kernel.

Thanks,

Bart.

Changes compared to v3:
- Added more Reviewed-by tags.

Changes compared to v2:
- Changed patch 2/8 such that .nr_queues is only set if nr_maps == 1.

Changes compared to v1:
- Reworked patch 2/8 as requested by Ming.
- Added three new null_blk patches.

Bart Van Assche (8):
  blk-mq: Fix a comment in include/linux/blk-mq.h
  blk-mq: Keep set->nr_hw_queues and set->map[].nr_queues in sync
  blk-mq: Fix a recently introduced regression in
    blk_mq_realloc_hw_ctxs()
  null_blk: Suppress an UBSAN complaint triggered when setting
    'memory_backed'
  null_blk: Fix changing the number of hardware queues
  null_blk: Fix the null_add_dev() error path
  null_blk: Handle null_add_dev() failures properly
  null_blk: Add support for init_hctx() fault injection

 block/blk-mq.c                |   9 ++-
 drivers/block/null_blk_main.c | 124 +++++++++++++++++++++++-----------
 include/linux/blk-mq.h        |   5 +-
 3 files changed, 97 insertions(+), 41 deletions(-)


             reply	other threads:[~2020-03-10  4:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10  4:26 Bart Van Assche [this message]
2020-03-10  4:26 ` [PATCH v4 1/8] blk-mq: Fix a comment in include/linux/blk-mq.h Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 2/8] blk-mq: Keep set->nr_hw_queues and set->map[].nr_queues in sync Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 3/8] blk-mq: Fix a recently introduced regression in blk_mq_realloc_hw_ctxs() Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 4/8] null_blk: Suppress an UBSAN complaint triggered when setting 'memory_backed' Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 5/8] null_blk: Fix changing the number of hardware queues Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 6/8] null_blk: Fix the null_add_dev() error path Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 7/8] null_blk: Handle null_add_dev() failures properly Bart Van Assche
2020-03-10  4:26 ` [PATCH v4 8/8] null_blk: Add support for init_hctx() fault injection Bart Van Assche
2020-03-10 13:10 ` [PATCH v4 0/8] Improve changing the number of hardware queues Jens Axboe

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=20200310042623.20779-1-bvanassche@acm.org \
    --to=bvanassche@acm.org \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --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;
as well as URLs for NNTP newsgroup(s).