From: Christoph Hellwig <hch@lst.de>
To: Salman Qazi <sqazi@google.com>
Cc: Jens Axboe <axboe@kernel.dk>, Ming Lei <ming.lei@redhat.com>,
Bart Van Assche <bvanassche@acm.org>,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
Jesse Barnes <jsbarnes@google.com>,
Gwendal Grignou <gwendal@google.com>,
Hannes Reinecke <hare@suse.com>, Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH v3] block: Limit number of items taken from the I/O scheduler in one go
Date: Fri, 24 Apr 2020 17:39:40 +0200 [thread overview]
Message-ID: <20200424153940.GA17253@lst.de> (raw)
In-Reply-To: <20200424150321.38617-1-sqazi@google.com>
> + /*
> + * A return of -EAGAIN is an indication that hctx->dispatch is not
> + * empty and we must run again in order to avoid starving flushes.
> + */
> + if (__blk_mq_sched_dispatch_requests(hctx) == -EAGAIN) {
> + if (__blk_mq_sched_dispatch_requests(hctx) == -EAGAIN)
> + blk_mq_run_hw_queue(hctx, true);
> + }
The comment doesn't explain why we give up after the second attempt and
do a blk_mq_run_hw_queue instead.
prev parent reply other threads:[~2020-04-24 15:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 15:03 [PATCH v3] block: Limit number of items taken from the I/O scheduler in one go Salman Qazi
2020-04-24 15:17 ` Jens Axboe
2020-04-24 15:39 ` Christoph Hellwig [this message]
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=20200424153940.GA17253@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=gwendal@google.com \
--cc=hare@suse.com \
--cc=jsbarnes@google.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=sqazi@google.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;
as well as URLs for NNTP newsgroup(s).