在 2025/4/21 20:43, Christoph Hellwig 写道:
On Mon, Apr 21, 2025 at 08:22:53PM +0800, Zizhi Wo wrote:
But I also don't understand what "level" even means here.
The first "level" refers to the granularity of the tg; this flag needs
to be cleared when bio moving up to the upper-level tg, for example:
tg_dispatch_one_bio->throtl_add_bio_tg.
The second "level" refers to the fact that throttle and rq_qos are not
on the same layer, so reuse this flag.
So the flag is only set while the bio is queued up in the throttling
lists, and it can't be in rq_qos lists at the same time?
Yes, otherwise they will interfere with each other. We can currently
ensure that this flag is cleared in the throttle process.
Thanks,
Zizhi Wo