All of lore.kernel.org
 help / color / mirror / Atom feed
* blk-wbt / wbt_rqw_done logic?
@ 2021-06-16 17:36 Omar Kilani
  0 siblings, 0 replies; only message in thread
From: Omar Kilani @ 2021-06-16 17:36 UTC (permalink / raw)
  To: linux-block; +Cc: Jens Axboe

Hi Jens,

While looking into a deadlock that Jan has fixed:

https://lore.kernel.org/linux-block/CA+8F9hggf7jOcGRxvBoa8FYxQs8ZV+XueVAd9BodpQQP_+8Pdw@mail.gmail.com/T/

I noticed this line of code in blk-wbt.c (L164):

-               if (!inflight || diff >= rwb->wb_background / 2)

And based on the preceding logic calculating `limit` and the comment
in the "no wakeup" check above which references "normal limit" and
decides based on `limit`, it's not clear why `rwb->wb_background` is
used here as there's no comment.

Should this be:

+               if (!inflight || diff >= limit / 2)

I traced the history of the line back to 4.20rc but it hasn't changed
since being added.

Thanks!

Regards,
Omar

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-16 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 17:36 blk-wbt / wbt_rqw_done logic? Omar Kilani

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.