From: Jens Axboe <axboe@kernel.dk>
To: "Holger Hoffstätte" <holger@applied-asynchrony.com>
Cc: linux-block@vger.kernel.org
Subject: Re: [PATCH] blk-wbt: Avoid lock contention and thundering herd issue in wbt_wait
Date: Wed, 22 Aug 2018 13:46:40 -0600 [thread overview]
Message-ID: <6f0e6f3d-060b-1dd7-b91e-5e9df3f485cb@kernel.dk> (raw)
In-Reply-To: <ae772eed-6488-acd2-4122-73a10a669b99@applied-asynchrony.com>
On 8/22/18 1:37 PM, Holger Hoffstätte wrote:
> On 08/22/18 21:17, Jens Axboe wrote:
>>> So the obvious suspect is the new return of UINT_MAX from get_limit() to
>>> __wbt_wait(). I first suspected that I mispatched something, but it's all
>>> like in mainline or your tree. Even the recently moved-around atomic loop
>>> inside rq_wait_inc_below() is 1:1 the same and looks like it should.
>>> Now building mainline and see where that leads me.
>
> So mainline + your tree's last 4 patches works fine, as suspected.
> It's all me, as usual.
That's a relief!
>> I wonder if it's a signedness thing? Can you try and see if using INT_MAX
>> instead changes anything?
>
> Beat me to it while I was rebooting ;-)
> Exactly what I also found a minute ago:
>
> $diff -rup linux-4.18.4/block/blk-rq-qos.c linux/block/blk-rq-qos.c
> ..
> -bool rq_wait_inc_below(struct rq_wait *rq_wait, int limit)
> +bool rq_wait_inc_below(struct rq_wait *rq_wait, unsigned int limit)
> ..
>
> Moo! Patching now.
At least we have an explanation for why it didn't work.
--
Jens Axboe
next prev parent reply other threads:[~2018-08-22 19:46 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-31 21:34 [PATCH] blk-wbt: Avoid lock contention and thundering herd issue in wbt_wait Anchal Agarwal
2018-07-31 22:02 ` Anchal Agarwal
2018-08-01 15:14 ` Jens Axboe
2018-08-01 17:06 ` Anchal Agarwal
2018-08-01 22:09 ` Jens Axboe
2018-08-07 14:29 ` Jens Axboe
2018-08-07 20:12 ` Anchal Agarwal
2018-08-07 20:39 ` Jens Axboe
2018-08-07 21:12 ` Anchal Agarwal
2018-08-07 21:19 ` Jens Axboe
2018-08-07 22:06 ` Anchal Agarwal
2018-08-20 16:36 ` Jens Axboe
2018-08-20 17:34 ` van der Linden, Frank
2018-08-20 19:08 ` Jens Axboe
2018-08-20 19:29 ` Jens Axboe
2018-08-20 20:19 ` van der Linden, Frank
2018-08-20 20:20 ` Jens Axboe
2018-08-20 22:42 ` Balbir Singh
2018-08-21 2:58 ` Jens Axboe
2018-08-22 3:20 ` Jens Axboe
2018-08-22 4:01 ` Anchal Agarwal
2018-08-22 4:10 ` Jens Axboe
2018-08-22 12:54 ` Holger Hoffstätte
2018-08-22 14:27 ` Jens Axboe
2018-08-22 16:42 ` van der Linden, Frank
2018-08-22 17:30 ` Jens Axboe
2018-08-22 20:26 ` Anchal Agarwal
2018-08-22 21:05 ` Jens Axboe
2018-08-22 17:28 ` Jens Axboe
2018-08-22 19:12 ` Holger Hoffstätte
2018-08-22 19:17 ` Jens Axboe
2018-08-22 19:37 ` Holger Hoffstätte
2018-08-22 19:46 ` Jens Axboe [this message]
2018-08-22 19:58 ` Holger Hoffstätte
2018-08-07 21:28 ` Matt Wilson
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=6f0e6f3d-060b-1dd7-b91e-5e9df3f485cb@kernel.dk \
--to=axboe@kernel.dk \
--cc=holger@applied-asynchrony.com \
--cc=linux-block@vger.kernel.org \
/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