[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e3980b91-7a43-2493-48d0-081ef4158d2e@kernel.dk>
Date: Tue, 10 Mar 2020 11:37:18 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Tejun Heo <tj@...nel.org>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH block/for-5.6-fixes] blk-iocost: fix incorrect vtime
comparison in iocg_is_idle()
On 3/10/20 11:07 AM, Tejun Heo wrote:
> vtimes may wrap and time_before/after64() should be used to determine
> whether a given vtime is before or after another. iocg_is_idle() was
> incorrectly using plain "<" comparison do determine whether done_vtime
> is before vtime. Here, the only thing we're interested in is whether
> done_vtime matches vtime which indicates that there's nothing in
> flight. Let's test for inequality instead.
Applied, thanks.
--
Jens Axboe
Powered by blists - more mailing lists