linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: xtu4 <xiaobing.tu@intel.com>
Cc: linux-kernel@vger.kernel.org, di.zhang@intel.com
Subject: Re: [PATCH] Allow 0ms deadline latency
Date: Sun, 09 Dec 2012 19:18:53 +0100	[thread overview]
Message-ID: <50C4D60D.4090201@kernel.dk> (raw)
In-Reply-To: <50C4B62C.7050404@intel.com>

On 2012-12-09 17:02, xtu4 wrote:
> On 12/10/2012 12:01 AM, xtu4 wrote:
>> Subject: [PATCH] Allow 0ms deadline latency, increase the read speed
>>
>> Signed-off-by: xiaobing tu <xiaobing.tu@intel.com>
>> ---
>> block/deadline-iosched.c |    2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c
>> index c644137..e502d6b 100644
>> --- a/block/deadline-iosched.c
>> +++ b/block/deadline-iosched.c
>> @@ -230,7 +230,7 @@ static inline int deadline_check_fifo(struct 
>> deadline_data *dd, int ddir)
>>        /*
>>         * rq is expired!
>>         */
>> -       if (time_after(jiffies, rq_fifo_time(rq)))
>> +       if (time_after_eq(jiffies, rq_fifo_time(rq)))
>>                return 1;
>>
>>         return 0;

Looks fine, it allows FIFO behaviour for deadline as well. I have
applied it.

-- 
Jens Axboe


      reply	other threads:[~2012-12-09 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-09 16:01 [PATCH] Allow 0ms deadline latency xtu4
2012-12-09 16:02 ` xtu4
2012-12-09 18:18   ` Jens Axboe [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=50C4D60D.4090201@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=di.zhang@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xiaobing.tu@intel.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).