From: Mike Snitzer <snitzer@redhat.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Ming Lei <ming.lei@redhat.com>,
Bart Van Assche <bart.vanassche@wdc.com>,
dm-devel@redhat.com, linux-block@vger.kernel.org
Subject: Re: [GIT PULL] block changes to improve device mapper for 4.16
Date: Mon, 15 Jan 2018 10:52:21 -0500 [thread overview]
Message-ID: <20180115155220.GA16814@redhat.com> (raw)
In-Reply-To: <36b17d56-bd2b-220a-08c1-8bd44d33f854@kernel.dk>
On Mon, Jan 15 2018 at 10:33am -0500,
Jens Axboe <axboe@kernel.dk> wrote:
> On 1/14/18 7:59 PM, Mike Snitzer wrote:
...
> > Ming Lei (3):
> > blk-mq: move actual issue into __blk_mq_issue_req helper
>
> I don't like this patch at all - it's a 10 line function (if that)
> that ends up with three outputs, two of them hidden in passed
> in pointers. On top of that, a function that is named
> __blk_mq_issue_req() and returns bool, you would logically expect
> a 'true' return to mean that it succeeded. This is the opposite.
>
> Not strongly opposed to the rest.
OK, I'll have a closer look at how to clean it up (and also get with
Ming).
In the meantime, you can either cherry-pick my first 4 patches or feel
free to use this to pull them in:
The following changes since commit bf9ae8c5325c0070d0ec81a849bba8d156f65993:
blk-mq: fix bad clear of RQF_MQ_INFLIGHT in blk_mq_ct_ctx_init() (2018-01-14 10:46:24 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-block-4.16/dm-changes-1
for you to fetch changes up to d0cc27da2b04351b3cb52afeb99ceca7b9f91f3b:
dm: fix incomplete request_queue initialization (2018-01-14 12:59:59 -0500)
----------------------------------------------------------------
- Small correctness fix in del_gendisk() if GENHD_FL_HIDDEN is used.
- Cleanup blk_unregister_queue() to more precisely protect against
concurrent sysfs changes, blk_mq_unregister_dev() now requires caller
to hold q->sysfslock (blk_unregister_queue is only caller).
- Introduce add_disk() variant, add_disk_no_queue_reg(), that allows the
gendisk to be registered but the associated disk->queue's
blk_register_queue() is left for the driver to do once its
request_queue is fully initialized. Fixes long-standing DM
request_queue initialization issues.
----------------------------------------------------------------
Mike Snitzer (4):
block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDEN
block: properly protect the 'queue' kobj in blk_unregister_queue
block: allow gendisk's request_queue registration to be deferred
dm: fix incomplete request_queue initialization
block/blk-mq-sysfs.c | 9 +--------
block/blk-sysfs.c | 18 +++++++++++++++---
block/genhd.c | 23 +++++++++++++++++++----
drivers/md/dm-rq.c | 9 ---------
drivers/md/dm.c | 11 ++++++++++-
include/linux/genhd.h | 5 +++++
6 files changed, 50 insertions(+), 25 deletions(-)
next prev parent reply other threads:[~2018-01-15 15:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-15 2:59 [GIT PULL] block changes to improve device mapper for 4.16 Mike Snitzer
2018-01-15 15:33 ` Jens Axboe
2018-01-15 15:52 ` Mike Snitzer [this message]
2018-01-15 15:54 ` Jens Axboe
2018-01-15 17:00 ` Ming Lei
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=20180115155220.GA16814@redhat.com \
--to=snitzer@redhat.com \
--cc=axboe@kernel.dk \
--cc=bart.vanassche@wdc.com \
--cc=dm-devel@redhat.com \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
/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