Re: [PATCH v2 1/2] workqueue: new struct io_work
From: Kent Overstreet
Date: Tue Jul 02 2024 - 12:46:44 EST
On Tue, Jul 02, 2024 at 05:27:19PM GMT, yi sun wrote:
> Yes, adding the io priority attribute to work will bring huge benefits in the
> following scenarios:
> The system has huge IO pressure (these IOs may all be low-priority IOs),
> and a work (we hope to complete quickly) is also doing IO. If this work
> does not set IO priority, it will be blocked because it is difficult to get IO
> resources. And if this work sets a high IO priority and passes the IO priority
> to kworker, then this work will be completed quickly (as we expect).
Why are you submitting IO from a workqueue in the first place?