Linux block layer
 help / color / mirror / Atom feed
From: Ming Lei <ming.lei@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: axboe@kernel.dk, linux-block@vger.kernel.org
Subject: Re: [PATCH v2] block: fix peeking requests during PM
Date: Mon, 23 Oct 2017 18:43:16 +0800	[thread overview]
Message-ID: <20171023104315.GA30252@ming.t460p> (raw)
In-Reply-To: <20171020144523.4585-1-hch@lst.de>

On Fri, Oct 20, 2017 at 04:45:23PM +0200, Christoph Hellwig wrote:
> We need to look for an active PM request until the next softbarrier
> instead of looking for the first non-PM request.  Otherwise any cause
> of request reordering might starve the PM request(s).

Hi Christoph,

Could you share us how the starve is caused? Looks all PM
request is run via scsi_execute(), and the caller is always
waiting for the completion of PM request.

Especially PM request is run after SCSI device is in quiesce
state, during that time, no normal(non-preempt) request can
enter queue after the making quiesce safe patchset is merged.

--
Ming

  reply	other threads:[~2017-10-23 10:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-20 14:45 [PATCH v2] block: fix peeking requests during PM Christoph Hellwig
2017-10-23 10:43 ` Ming Lei [this message]
2017-10-24 14:45   ` Christoph Hellwig
2017-11-04 11:40 ` Christoph Hellwig
2017-11-04 14:17   ` 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=20171023104315.GA30252@ming.t460p \
    --to=ming.lei@redhat.com \
    --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