mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Shaohua Li <shaohua.li@intel.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
	Jens Axboe <jaxboe@fusionio.com>, Vivek Goyal <vgoyal@redhat.com>
Subject: Re: [RFC]block: don't mark flush request as SOFTBARRIER
Date: Sun, 11 Sep 2011 11:51:28 +0900	[thread overview]
Message-ID: <20110911025128.GM29319@htj.dyndns.org> (raw)
In-Reply-To: <1315445394.29510.71.camel@sli10-conroe>

Hello,

On Thu, Sep 08, 2011 at 09:29:54AM +0800, Shaohua Li wrote:
> I'm wondering why flush request should be marked as
> SOFTBARRIER. Current flush sequence guarantees the correctness of
> flush even the request is reordered by ioscheduler.

The primary reason would be because when those flush data requests are
put on the dispatch queue, it doesn't go through elv_dispatch_sort().
SOFTBARRIERs function as dispatch sort boundaries and queueing flush
data request at the head w/o SOFTBARRIER would confuse dispatch
sorting, and we want to put it at the head of dispatch queue to
decrease latency for flush sequence.

Thanks.

-- 
tejun

  reply	other threads:[~2011-09-11  2:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  1:29 Shaohua Li
2011-09-11  2:51 ` Tejun Heo [this message]
2011-09-13  1:04   ` Shaohua Li
2011-09-13  7:46     ` Tejun Heo
2011-09-14  6:04       ` Shaohua Li

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=20110911025128.GM29319@htj.dyndns.org \
    --to=htejun@gmail.com \
    --cc=jaxboe@fusionio.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaohua.li@intel.com \
    --cc=vgoyal@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®