All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "hch@lst.de" <hch@lst.de>
Cc: "dm-devel@redhat.com" <dm-devel@redhat.com>,
	"loberman@redhat.com" <loberman@redhat.com>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"snitzer@redhat.com" <snitzer@redhat.com>
Subject: Re: [PATCH] block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time
Date: Thu, 10 Aug 2017 15:14:26 +0000	[thread overview]
Message-ID: <1502378060.2309.3.camel@wdc.com> (raw)
In-Reply-To: <20170810071408.GA20981@lst.de>

On Thu, 2017-08-10 at 09:14 +0200, Christoph Hellwig wrote:
> On Wed, Aug 09, 2017 at 11:28:06AM -0700, Bart Van Assche wrote:
> > The blk_mq_delay_kick_requeue_list() function is used by the device
> > mapper and only by the device mapper to rerun the queue and requeue
> > list after a delay. This function is called once per request that
> > gets requeued. Modify this function such that the queue is run once
> > per path change event instead of once per request that is requeued.
> 
> Is there a chance we could look into killing this function and moving
> dm to run it every time we requeue a request like all the other drivers?

Hello Christoph,

That's an interesting question. I think it's not possible to remove this
function without adding more infrastructure to the block layer. As an
example, if the .lld_busy_fn() request queue callback function reports that
a request queue is busy the only way for the dm-mpath driver to detect that
an underlying request queue is no longer busy is by calling that function
again after a certain time (see also multipath_busy() in dm-mpath.c). In
other words, if we want to get rid of blk_mq_delay_kick_requeue_list() then
notification mechanisms will have to be added for every type of state
information that can cause the state of a multipath from "not ready" into
"ready".

Bart.

WARNING: multiple messages have this Message-ID (diff)
From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "hch@lst.de" <hch@lst.de>
Cc: "dm-devel@redhat.com" <dm-devel@redhat.com>,
	"loberman@redhat.com" <loberman@redhat.com>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"snitzer@redhat.com" <snitzer@redhat.com>
Subject: Re: [PATCH] block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time
Date: Thu, 10 Aug 2017 15:14:26 +0000	[thread overview]
Message-ID: <1502378060.2309.3.camel@wdc.com> (raw)
In-Reply-To: <20170810071408.GA20981@lst.de>

T24gVGh1LCAyMDE3LTA4LTEwIGF0IDA5OjE0ICswMjAwLCBDaHJpc3RvcGggSGVsbHdpZyB3cm90
ZToNCj4gT24gV2VkLCBBdWcgMDksIDIwMTcgYXQgMTE6Mjg6MDZBTSAtMDcwMCwgQmFydCBWYW4g
QXNzY2hlIHdyb3RlOg0KPiA+IFRoZSBibGtfbXFfZGVsYXlfa2lja19yZXF1ZXVlX2xpc3QoKSBm
dW5jdGlvbiBpcyB1c2VkIGJ5IHRoZSBkZXZpY2UNCj4gPiBtYXBwZXIgYW5kIG9ubHkgYnkgdGhl
IGRldmljZSBtYXBwZXIgdG8gcmVydW4gdGhlIHF1ZXVlIGFuZCByZXF1ZXVlDQo+ID4gbGlzdCBh
ZnRlciBhIGRlbGF5LiBUaGlzIGZ1bmN0aW9uIGlzIGNhbGxlZCBvbmNlIHBlciByZXF1ZXN0IHRo
YXQNCj4gPiBnZXRzIHJlcXVldWVkLiBNb2RpZnkgdGhpcyBmdW5jdGlvbiBzdWNoIHRoYXQgdGhl
IHF1ZXVlIGlzIHJ1biBvbmNlDQo+ID4gcGVyIHBhdGggY2hhbmdlIGV2ZW50IGluc3RlYWQgb2Yg
b25jZSBwZXIgcmVxdWVzdCB0aGF0IGlzIHJlcXVldWVkLg0KPiANCj4gSXMgdGhlcmUgYSBjaGFu
Y2Ugd2UgY291bGQgbG9vayBpbnRvIGtpbGxpbmcgdGhpcyBmdW5jdGlvbiBhbmQgbW92aW5nDQo+
IGRtIHRvIHJ1biBpdCBldmVyeSB0aW1lIHdlIHJlcXVldWUgYSByZXF1ZXN0IGxpa2Ug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z  Atom feed  top
2017-08-09 18:28 [PATCH] block: Make blk_mq_delay_kick_requeue_list() rerun the queue at a quiet time Bart Van Assche
2017-08-09 18:28 ` Bart Van Assche
2017-08-09 19:01 ` Jens Axboe
2017-08-10  7:14 ` Christoph Hellwig
2017-08-10 15:14   ` Bart Van Assche [this message]
2017-08-10 15:14     ` Bart Van Assche

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=1502378060.2309.3.camel@wdc.com \
    --to=bart.vanassche@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=dm-devel@redhat.com \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=loberman@redhat.com \
    --cc=snitzer@redhat.com \
    --cc=stable@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.