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: "jthumshirn@suse.de" <jthumshirn@suse.de>,
	"hch@infradead.org" <hch@infradead.org>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"axboe@fb.com" <axboe@fb.com>,
	"oleksandr@natalenko.name" <oleksandr@natalenko.name>,
	"jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
	"cavery@redhat.com" <cavery@redhat.com>
Subject: Re: [PATCH V4 08/10] block: allow to allocate req with RQF_PREEMPT when queue is preempt frozen
Date: Thu, 14 Sep 2017 13:37:14 +0000	[thread overview]
Message-ID: <1505396232.2898.13.camel@wdc.com> (raw)
In-Reply-To: <20170914011532.GA16105@ming.t460p>

T24gVGh1LCAyMDE3LTA5LTE0IGF0IDA5OjE1ICswODAwLCBNaW5nIExlaSB3cm90ZToNCj4gT24g
V2VkLCBTZXAgMTMsIDIwMTcgYXQgMDc6MDc6NTNQTSArMDAwMCwgQmFydCBWYW4gQXNzY2hlIHdy
b3RlOg0KPiA+IE9uIFRodSwgMjAxNy0wOS0xNCBhdCAwMTo0OCArMDgwMCwgTWluZyBMZWkgd3Jv
dGU6DQo+ID4gPiBObywgdGhhdCBwYXRjaCBvbmx5IGNoYW5nZXMgYmxrX2luc2VydF9jbG9uZWRf
cmVxdWVzdCgpIHdoaWNoIGlzIHVzZWQNCj4gPiA+IGJ5IGRtLXJxKG1wYXRoKSBvbmx5LCBub3Ro
aW5nIHRvIGRvIHdpdGggdGhlIHJlcG9ydGVkIGlzc3VlIGR1cmluZw0KPiA+ID4gc3VzcGVuZCBh
bmQgc2VuZGluZyBTQ1NJIERvbWFpbiB2YWxpZGF0aW9uLg0KPiA+IA0KPiA+IFRoZXJlIG1heSBi
ZS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hdGVkLg0KDQpTaW5jZSBJIGV4
cGVjdCB0aGF0IGFueSBmaXggZm9yIHRoZSBpbnRlcmFjdGlvbiBiZXR3ZWVuIGJsay1tcSBhbmQg
cG93ZXINCm1hbmFnZW1lbnQgd2lsbCBiZSBpbnRlZ3JhdGVkIGluIGtlcm5lbCB2NC4xNSBhdCBl
YXJsaWVzdCB0aGVyZSBpcyBubyByZWFzb24NCnRvIHJ1c2guIE15IHByb3Bvc2FsIGlzIHRvIHdh
aXQgYSBmZXcgd2Vla3MgYW5kIHRvIHNlZSB3aGV0aGVyIGFueW9uZSBjb21lcw0KdXAgd2l0aCBh
IGJldHRlciBzb2x1dGlvbi4NCg0KQmFydC4=

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: "jthumshirn@suse.de" <jthumshirn@suse.de>,
	"hch@infradead.org" <hch@infradead.org>,
	"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"axboe@fb.com" <axboe@fb.com>,
	"oleksandr@natalenko.name" <oleksandr@natalenko.name>,
	"jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
	"cavery@redhat.com" <cavery@redhat.com>
Subject: Re: [PATCH V4 08/10] block: allow to allocate req with RQF_PREEMPT when queue is preempt frozen
Date: Thu, 14 Sep 2017 13:37:14 +0000	[thread overview]
Message-ID: <1505396232.2898.13.camel@wdc.com> (raw)
In-Reply-To: <20170914011532.GA16105@ming.t460p>

On Thu, 2017-09-14 at 09:15 +0800, Ming Lei wrote:
> On Wed, Sep 13, 2017 at 07:07:53PM +0000, Bart Van Assche wrote:
> > On Thu, 2017-09-14 at 01:48 +0800, Ming Lei wrote:
> > > No, that patch only changes blk_insert_cloned_request() which is used
> > > by dm-rq(mpath) only, nothing to do with the reported issue during
> > > suspend and sending SCSI Domain validation.
> > 
> > There may be other ways to fix the SCSI domain validation code.
> 
> Again the issue isn't in domain validation, it is in quiesce,
> so we need to fix quiesce, instead of working around transport_spi.
> 
> Also What is the other way? Why not this patchset?

Sorry if I had not made this clear enough but I don't like the approach of
this patch series so please do not expect any "Reviewed-by" tags from me.
As the discussion about v4 of this patch series made clear the interaction
between blk_cleanup_queue() and the changes introduced by this patch series
in blk_get_request() is subtle and hard to analyze. The blk-mq core is
already complicated. In my view patches that make the blk-mq core simpler
are much more welcome than patches that make the blk-mq core more
complicated.

Since I expect that any fix for the interaction between blk-mq and power
management will be integrated in kernel v4.15 at earliest there is no reason
to rush. My proposal is to wait a few weeks and to see whether anyone comes
up with a better solution.

Bart.

  reply	other threads:[~2017-09-14 13:38 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 11:10 [PATCH V4 0/10] block/scsi: safe SCSI quiescing Ming Lei
2017-09-11 11:10 ` [PATCH V4 01/10] blk-mq: only run hw queues for blk-mq Ming Lei
2017-09-11 11:10 ` [PATCH V4 02/10] block: tracking request allocation with q_usage_counter Ming Lei
2017-09-11 11:10 ` [PATCH V4 03/10] blk-mq: rename blk_mq_[freeze|unfreeze]_queue Ming Lei
2017-09-11 11:10 ` [PATCH V4 04/10] blk-mq: rename blk_mq_freeze_queue_wait as blk_freeze_queue_wait Ming Lei
2017-09-11 11:10 ` [PATCH V4 05/10] block: rename .mq_freeze_wq and .mq_freeze_depth Ming Lei
2017-09-11 11:10 ` [PATCH V4 06/10] block: pass flags to blk_queue_enter() Ming Lei
2017-09-11 11:10 ` [PATCH V4 07/10] block: introduce preempt version of blk_[freeze|unfreeze]_queue Ming Lei
2017-09-11 11:10 ` [PATCH V4 08/10] block: allow to allocate req with RQF_PREEMPT when queue is preempt frozen Ming Lei
2017-09-11 16:03   ` Bart Van Assche
2017-09-11 16:03     ` Bart Van Assche
2017-09-12  3:40     ` Ming Lei
2017-09-13 16:48       ` Ming Lei
2017-09-13 17:28         ` Bart Van Assche
2017-09-13 17:28           ` Bart Van Assche
2017-09-13 17:48           ` Ming Lei
2017-09-13 19:07             ` Bart Van Assche
2017-09-13 19:07               ` Bart Van Assche
2017-09-14  1:15               ` Ming Lei
2017-09-14 13:37                 ` Bart Van Assche [this message]
2017-09-14 13:37                   ` Bart Van Assche
2017-09-14 16:18                   ` Ming Lei
2017-09-11 11:10 ` [PATCH V4 09/10] SCSI: transport_spi: resume a quiesced device Ming Lei
2017-09-11 11:10 ` [PATCH V4 10/10] SCSI: preempt freeze block queue when SCSI device is put into quiesce Ming Lei
2017-09-11 21:24 ` [PATCH V4 0/10] block/scsi: safe SCSI quiescing Oleksandr Natalenko
2017-09-11 21:24   ` Oleksandr Natalenko
2017-09-12 19:03 ` Cathy Avery

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=1505396232.2898.13.camel@wdc.com \
    --to=bart.vanassche@wdc.com \
    --cc=axboe@fb.com \
    --cc=cavery@redhat.com \
    --cc=hch@infradead.org \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=jthumshirn@suse.de \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=ming.lei@redhat.com \
    --cc=oleksandr@natalenko.name \
    /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.