public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix Revert "bfq: Fix computation of shallow depth" in linux-block.git
@ 2021-02-03  3:31 Lin Feng
  2021-02-03  3:37 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Lin Feng @ 2021-02-03  3:31 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linf

Hi Jens,

Not yet got your mail, but per https://lkml.org/lkml/2021/2/2/1901, this patch
 is the incremental. Codes based on:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/patch/?id=8a483b42b1b3cef7e72564cdcdde62a373bd2f01

Notes: After checking previous hand-applied patch in block-5.11 broken 2 lines
in original patch, the incremental covers all.

Thanks.

Signed-off-by: Lin Feng <linf@wangsu.com>
---
 block/bfq-iosched.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index 959e25c..9e81d10 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -6332,13 +6332,13 @@ static unsigned int bfq_update_depths(struct bfq_data *bfqd,
 	 * limit 'something'.
 	 */
 	/* no more than 50% of tags for async I/O */
-	bfqd->word_depths[0][1] = max(((1U << bt->sb.shift) * 3) >> 2, 1U);
+	bfqd->word_depths[0][0] = max((1U << bt->sb.shift) >> 1, 1U);
 	/*
 	 * no more than 75% of tags for sync writes (25% extra tags
 	 * w.r.t. async I/O, to prevent async I/O from starving sync
 	 * writes)
 	 */
-	bfqd->word_depths[0][1] = max((bt->sb.depth * 3) >> 2, 1U);
+	bfqd->word_depths[0][1] = max(((1U << bt->sb.shift) * 3) >> 2, 1U);
 
 	/*
 	 * In-word depths in case some bfq_queue is being weight-
-- 
2.25.4


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

* Re: [PATCH] Fix Revert "bfq: Fix computation of shallow depth" in linux-block.git
  2021-02-03  3:31 [PATCH] Fix Revert "bfq: Fix computation of shallow depth" in linux-block.git Lin Feng
@ 2021-02-03  3:37 ` Jens Axboe
  2021-02-03  3:54   ` Lin Feng
  0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2021-02-03  3:37 UTC (permalink / raw)
  To: Lin Feng; +Cc: linux-block

On 2/2/21 8:31 PM, Lin Feng wrote:
> Hi Jens,
> 
> Not yet got your mail, but per https://lkml.org/lkml/2021/2/2/1901, this patch
>  is the incremental. Codes based on:
> https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/patch/?id=8a483b42b1b3cef7e72564cdcdde62a373bd2f01
> 
> Notes: After checking previous hand-applied patch in block-5.11 broken 2 lines
> in original patch, the incremental covers all.

Thanks, folded in. Please check the resulting patch:

https://git.kernel.dk/cgit/linux-block/commit/?h=block-5.11&id=388c705b95f23f317fa43e6abf9ff07b583b721a

-- 
Jens Axboe


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

* Re: [PATCH] Fix Revert "bfq: Fix computation of shallow depth" in linux-block.git
  2021-02-03  3:37 ` Jens Axboe
@ 2021-02-03  3:54   ` Lin Feng
  0 siblings, 0 replies; 3+ messages in thread
From: Lin Feng @ 2021-02-03  3:54 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block



On 2/3/21 11:37, Jens Axboe wrote:
> On 2/2/21 8:31 PM, Lin Feng wrote:
>> Hi Jens,
>>
>> Not yet got your mail, but per https://lkml.org/lkml/2021/2/2/1901, this patch
>>   is the incremental. Codes based on:
>> https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/patch/?id=8a483b42b1b3cef7e72564cdcdde62a373bd2f01
>>
>> Notes: After checking previous hand-applied patch in block-5.11 broken 2 lines
>> in original patch, the incremental covers all.
> 
> Thanks, folded in. Please check the resulting patch:
> 
> https://git.kernel.dk/cgit/linux-block/commit/?h=block-5.11&id=388c705b95f23f317fa43e6abf9ff07b583b721a
> 

Yes, it's correct :)

Thanks,
linfeng


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-03  3:31 [PATCH] Fix Revert "bfq: Fix computation of shallow depth" in linux-block.git Lin Feng
2021-02-03  3:37 ` Jens Axboe
2021-02-03  3:54   ` Lin Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox