Re: [PATCH 2/2] ufs: don't use the fair tag sharings

From: Yu Kuai
Date: Thu May 18 2023 - 03:55:45 EST


Hi,

在 2023/05/18 10:23, Bart Van Assche 写道:
On 5/17/23 18:49, Yu Kuai wrote:
Currently, fair share from hctx_may_queue() requires two
atomic_read(active_queues and active_requests), I think this smoothing
method can be placed into get_tag fail path, for example, the more times
a disk failed to get tag in a period of time, the more tag this disk can
get, and all the information can be updated here(perhaps directly
record how many tags a disk can get, then hctx_may_queue() still only
require 2 atomic_read()).

That sounds interesting to me. Do you perhaps plan to implement this approach and to post it as a patch?

Of course, I'll try to send a RFC patch.

Thanks,
Kuai

Thanks,

Bart.


.