All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "ming.lei@redhat.com" <ming.lei@redhat.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"hch@infradead.org" <hch@infradead.org>,
	"snitzer@redhat.com" <snitzer@redhat.com>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
	"loberman@redhat.com" <loberman@redhat.com>,
	"dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: Re: [PATCH 1/5] blk-mq: introduce BLK_STS_DEV_RESOURCE
Date: Tue, 23 Jan 2018 22:01:37 +0000	[thread overview]
Message-ID: <1516744896.3339.41.camel@wdc.com> (raw)
In-Reply-To: <20180123165914.GH13277@ming.t460p>

T24gV2VkLCAyMDE4LTAxLTI0IGF0IDAwOjU5ICswODAwLCBNaW5nIExlaSB3cm90ZToNCj4gSG93
IGlzIHRoYXQgZW5vdWdoIHRvIGZpeCB0aGUgSU8gaGFuZyB3aGVuIGRyaXZlciByZXR1cm5zIFNU
U19SRVNPVVJDRQ0KPiBhbmQgdGhlIHF1ZXVlIGlzIGlkbGU/IElmIHlvdSB3YW50IHRvIGZvbGxv
dyBwcmV2aW91cyBkbS1ycSdzIHdheSBvZg0KPiBjYWxsIGJsa19tcV9kZWxheV9ydW5faHdfcXVl
dWUoKSBpbiAucXVldWVfcnEoKSwgdGhlIHNhbWUgdHJpY2sgbmVlZA0KPiB0byBiZSBhcHBsaWVk
IHRvIG90aGVyIGRyaXZlcnMgdG9vLCByaWdodD8NCj4gDQo+IFVuZm9ydHVuYXRlbHkgbW9zdCBv
ZiBTVFNfUkVTT1VSQ0UgZG9uJ3QgdXNlIHRoaXMgdHJpY2ssIGJ1dCB0aGV5IG5lZWQNCj4gdG8g
YmUgaGFuZGxlZC4NCj4gDQo+IFRoZSBwYXRjaCBvZiAnYmxrLW1xOiBpbnRyb2R1Y2UgQkxLX1NU
U19ERVZfUkVTT1VSQ0UnIGNhbiBmaXggYWxsIHRoZXNlDQo+IGNhc2VzLg0KDQpUaGUgZ29hbCBv
ZiBteSBwcm9wb3NhbCB3YXMgdG8gYWRkcmVzcyB0aGUgcmFjZSBiZXR3ZWVuIHJ1bm5pbmcgdGhl
IHF1ZXVlIGFuZA0KYWRkaW5nIHJlcXVlc3RzIGJhY2sgdG8gdGhlIGRpc3BhdGNoIHF1ZXVlIG9u
bHkuIFJlZ2FyZGluZyB0aGUgSS9PIGhhbmdzIHRoYXQNCmNhbiBvY2N1ciBpZiBhIGJsb2NrIGRy
aXZlciByZXR1cm5zIEJMS19TVFNfUkVTT1VSQ0U6IHNpbmNlIGFsbCBvZiB0aGVzZSBjYW4NCmJl
IGFkZHJlc3NlZCBieSBpbnNlcnRpbmcgYmxrX21xX2RlbGF5X3J1bl9od19xdWV1ZSgpIGNhbGxz
IGluIHRoZSBhZmZlY3RlZA0KYmxvY2sgZHJpdmVycyBJIHByZWZlciB0byBtb2RpZnkgdGhlIGJs
b2NrIGRyaXZlcnMgaW5zdGVhZCBvZiBtYWtpbmcgdGhlDQpibGstbXEgY29yZSBldmVuIG1vcmUg
Y29tcGxpY2F0ZWQuDQoNClRoYW5rcywNCg0KQmFydC4=

WARNING: multiple messages have this Message-ID (diff)
From: Bart Van Assche <Bart.VanAssche@wdc.com>
To: "ming.lei@redhat.com" <ming.lei@redhat.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"hch@infradead.org" <hch@infradead.org>,
	"snitzer@redhat.com" <snitzer@redhat.com>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
	"axboe@kernel.dk" <axboe@kernel.dk>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
	"loberman@redhat.com" <loberman@redhat.com>,
	"dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: Re: [PATCH 1/5] blk-mq: introduce BLK_STS_DEV_RESOURCE
Date: Tue, 23 Jan 2018 22:01:37 +0000	[thread overview]
Message-ID: <1516744896.3339.41.camel@wdc.com> (raw)
In-Reply-To: <20180123165914.GH13277@ming.t460p>

On Wed, 2018-01-24 at 00:59 +0800, Ming Lei wrote:
> How is that enough to fix the IO hang when driver returns STS_RESOURCE
> and the queue is idle? If you want to follow previous dm-rq's way of
> call blk_mq_delay_run_hw_queue() in .queue_rq(), the same trick need
> to be applied to other drivers too, right?
> 
> Unfortunately most of STS_RESOURCE don't use this trick, but they need
> to be handled.
> 
> The patch of 'blk-mq: introduce BLK_STS_DEV_RESOURCE' can fix all these
> cases.

The goal of my proposal was to address the race between running the queue and
adding requests back to the dispatch queue only. Regarding the I/O hangs that
can occur if a block driver returns BLK_STS_RESOURCE: since all of these can
be addressed by inserting blk_mq_delay_run_hw_queue() calls in the affected
block drivers I prefer to modify the block drivers instead of making the
blk-mq core even more complicated.

Thanks,

Bart.

  reply	other threads:[~2018-01-23 22:01 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22  3:35 [PATCH 0/5] blk-mq & dm: fix IO hang and deal with one performance issue Ming Lei
2018-01-22  3:35 ` [PATCH 1/5] blk-mq: introduce BLK_STS_DEV_RESOURCE Ming Lei
2018-01-22 16:32   ` Christoph Hellwig
2018-01-22 16:49   ` Bart Van Assche
2018-01-22 16:49     ` Bart Van Assche
2018-01-23  0:57     ` Ming Lei
2018-01-23 16:17       ` Bart Van Assche
2018-01-23 16:26         ` Ming Lei
2018-01-23 16:37           ` Bart Van Assche
2018-01-23 16:41             ` Ming Lei
2018-01-23 16:47               ` Bart Van Assche
2018-01-23 16:47                 ` Bart Van Assche
2018-01-23 16:49                 ` Ming Lei
2018-01-23 16:54                   ` Bart Van Assche
2018-01-23 16:54                     ` Bart Van Assche
2018-01-23 16:59                     ` Ming Lei
2018-01-23 16:59                       ` Ming Lei
2018-01-23 22:01                       ` Bart Van Assche [this message]
2018-01-23 22:01                         ` Bart Van Assche
2018-01-24  2:31                         ` Ming Lei
2018-01-22  3:35 ` [PATCH 2/5] dm-rq: handle dispatch exception in dm_dispatch_clone_request() Ming Lei
2018-01-22  3:35   ` Ming Lei
2018-01-22  3:35 ` [PATCH 3/5] dm-rq: return BLK_STS_* from map_request() Ming Lei
2018-01-22  3:35   ` Ming Lei
2018-01-22  5:35   ` Ming Lei
2018-01-22  3:35 ` [PATCH 4/5] blk-mq: introduce blk_get_request_notify Ming Lei
2018-01-22 10:19   ` Ming Lei
2018-01-22 17:13   ` Bart Van Assche
2018-01-22 17:13     ` Bart Van Assche
2018-01-23  1:29     ` Ming Lei
2018-01-22  3:35 ` [PATCH 5/5] dm-mpath: use blk_mq_alloc_request_notify for allocating blk-mq req 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=1516744896.3339.41.camel@wdc.com \
    --to=bart.vanassche@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=dm-devel@redhat.com \
    --cc=hch@infradead.org \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=loberman@redhat.com \
    --cc=martin.petersen@oracle.com \
    --cc=ming.lei@redhat.com \
    --cc=snitzer@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 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.