All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block/bfq: update comments and default value in docs for fifo_expire
@ 2021-02-23  1:55 Joseph Qi
  2021-02-23  8:25 ` Paolo Valente
  2021-03-02 18:25 ` Jens Axboe
  0 siblings, 2 replies; 4+ messages in thread
From: Joseph Qi @ 2021-02-23  1:55 UTC (permalink / raw)
  To: Paolo Valente, Jens Axboe; +Cc: linux-block, linux-doc

Correct the comments since bfq_fifo_expire[0] is for async request,
while bfq_fifo_expire[1] is for sync request.
Also update docs, according the source code, the default
fifo_expire_async is 250ms, and fifo_expire_sync is 125ms.

Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
---
 Documentation/block/bfq-iosched.rst | 4 ++--
 block/bfq-iosched.c                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/block/bfq-iosched.rst b/Documentation/block/bfq-iosched.rst
index 19d4d15..66c5a4e 100644
--- a/Documentation/block/bfq-iosched.rst
+++ b/Documentation/block/bfq-iosched.rst
@@ -430,13 +430,13 @@ fifo_expire_async
 -----------------
 
 This parameter is used to set the timeout of asynchronous requests. Default
-value of this is 248ms.
+value of this is 250ms.
 
 fifo_expire_sync
 ----------------
 
 This parameter is used to set the timeout of synchronous requests. Default
-value of this is 124ms. In case to favor synchronous requests over asynchronous
+value of this is 125ms. In case to favor synchronous requests over asynchronous
 one, this value should be decreased relative to fifo_expire_async.
 
 low_latency
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index b398dde..2baa10b 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -160,7 +160,7 @@
 BFQ_BFQQ_FNS(softrt_update);
 #undef BFQ_BFQQ_FNS						\
 
-/* Expiration time of sync (0) and async (1) requests, in ns. */
+/* Expiration time of async (0) and sync (1) requests, in ns. */
 static const u64 bfq_fifo_expire[2] = { NSEC_PER_SEC / 4, NSEC_PER_SEC / 8 };
 
 /* Maximum backwards seek (magic number lifted from CFQ), in KiB. */
-- 
1.8.3.1


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

* Re: [PATCH] block/bfq: update comments and default value in docs for fifo_expire
  2021-02-23  1:55 [PATCH] block/bfq: update comments and default value in docs for fifo_expire Joseph Qi
@ 2021-02-23  8:25 ` Paolo Valente
  2021-03-02 11:48   ` Joseph Qi
  2021-03-02 18:25 ` Jens Axboe
  1 sibling, 1 reply; 4+ messages in thread
From: Paolo Valente @ 2021-02-23  8:25 UTC (permalink / raw)
  To: Joseph Qi; +Cc: Jens Axboe, linux-block, linux-doc



> Il giorno 23 feb 2021, alle ore 02:55, Joseph Qi <joseph.qi@linux.alibaba.com> ha scritto:
> 
> Correct the comments since bfq_fifo_expire[0] is for async request,
> while bfq_fifo_expire[1] is for sync request.
> Also update docs, according the source code, the default
> fifo_expire_async is 250ms, and fifo_expire_sync is 125ms.
> 

Thank you!

Acked-by: Paolo Valente <paolo.valente@linaro.org>

> Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
> ---
> Documentation/block/bfq-iosched.rst | 4 ++--
> block/bfq-iosched.c                 | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/Documentation/block/bfq-iosched.rst b/Documentation/block/bfq-iosched.rst
> index 19d4d15..66c5a4e 100644
> --- a/Documentation/block/bfq-iosched.rst
> +++ b/Documentation/block/bfq-iosched.rst
> @@ -430,13 +430,13 @@ fifo_expire_async
> -----------------
> 
> This parameter is used to set the timeout of asynchronous requests. Default
> -value of this is 248ms.
> +value of this is 250ms.
> 
> fifo_expire_sync
> ----------------
> 
> This parameter is used to set the timeout of synchronous requests. Default
> -value of this is 124ms. In case to favor synchronous requests over asynchronous
> +value of this is 125ms. In case to favor synchronous requests over asynchronous
> one, this value should be decreased relative to fifo_expire_async.
> 
> low_latency
> diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
> index b398dde..2baa10b 100644
> --- a/block/bfq-iosched.c
> +++ b/block/bfq-iosched.c
> @@ -160,7 +160,7 @@
> BFQ_BFQQ_FNS(softrt_update);
> #undef BFQ_BFQQ_FNS						\
> 
> -/* Expiration time of sync (0) and async (1) requests, in ns. */
> +/* Expiration time of async (0) and sync (1) requests, in ns. */
> static const u64 bfq_fifo_expire[2] = { NSEC_PER_SEC / 4, NSEC_PER_SEC / 8 };
> 
> /* Maximum backwards seek (magic number lifted from CFQ), in KiB. */
> -- 
> 1.8.3.1
> 


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

* Re: [PATCH] block/bfq: update comments and default value in docs for fifo_expire
  2021-02-23  8:25 ` Paolo Valente
@ 2021-03-02 11:48   ` Joseph Qi
  0 siblings, 0 replies; 4+ messages in thread
From: Joseph Qi @ 2021-03-02 11:48 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, linux-doc, Paolo Valente



On 2/23/21 4:25 PM, Paolo Valente wrote:
> 
> 
>> Il giorno 23 feb 2021, alle ore 02:55, Joseph Qi <joseph.qi@linux.alibaba.com> ha scritto:
>>
>> Correct the comments since bfq_fifo_expire[0] is for async request,
>> while bfq_fifo_expire[1] is for sync request.
>> Also update docs, according the source code, the default
>> fifo_expire_async is 250ms, and fifo_expire_sync is 125ms.
>>
> 
> Thank you!
> 
> Acked-by: Paolo Valente <paolo.valente@linaro.org>
> 
Jens, could you take this?

Thanks,
Joseph

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

* Re: [PATCH] block/bfq: update comments and default value in docs for fifo_expire
  2021-02-23  1:55 [PATCH] block/bfq: update comments and default value in docs for fifo_expire Joseph Qi
  2021-02-23  8:25 ` Paolo Valente
@ 2021-03-02 18:25 ` Jens Axboe
  1 sibling, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2021-03-02 18:25 UTC (permalink / raw)
  To: Joseph Qi, Paolo Valente; +Cc: linux-block, linux-doc

On 2/22/21 6:55 PM, Joseph Qi wrote:
> Correct the comments since bfq_fifo_expire[0] is for async request,
> while bfq_fifo_expire[1] is for sync request.
> Also update docs, according the source code, the default
> fifo_expire_async is 250ms, and fifo_expire_sync is 125ms.

Applied, thanks.

-- 
Jens Axboe


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

end of thread, other threads:[~2021-03-02 23:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23  1:55 [PATCH] block/bfq: update comments and default value in docs for fifo_expire Joseph Qi
2021-02-23  8:25 ` Paolo Valente
2021-03-02 11:48   ` Joseph Qi
2021-03-02 18:25 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.