linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Allow 0ms deadline latency
@ 2012-12-09 16:01 xtu4
  2012-12-09 16:02 ` xtu4
  0 siblings, 1 reply; 3+ messages in thread
From: xtu4 @ 2012-12-09 16:01 UTC (permalink / raw)
  To: linux-kernel, 'axboe, di.zhang, xtu4

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;
-- 
1.7.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Allow 0ms deadline latency
  2012-12-09 16:01 [PATCH] Allow 0ms deadline latency xtu4
@ 2012-12-09 16:02 ` xtu4
  2012-12-09 18:18   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: xtu4 @ 2012-12-09 16:02 UTC (permalink / raw)
  To: xtu4; +Cc: linux-kernel, axboe, di.zhang

re-send it
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;


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Allow 0ms deadline latency
  2012-12-09 16:02 ` xtu4
@ 2012-12-09 18:18   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2012-12-09 18:18 UTC (permalink / raw)
  To: xtu4; +Cc: linux-kernel, di.zhang

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-09 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).