Re: [PATCH 1/2] blk-mq: new busy request iterator for driver
From: Christoph Hellwig
Date: Wed Sep 29 2021 - 03:09:36 EST
On Wed, Sep 29, 2021 at 03:00:46PM +0800, Po-Wen Kao wrote:
> Driver occasionally execute allocated request directly without
> dispatching to block layer, thus request never appears in tags->rqs.
> To allow driver to iterate through requests in static_rqs, a new
> interface blk_mq_drv_tagset_busy_iter() is introduced.
Don't do that. All requests must be dispatched to blk-mq. Let's not
even get started on these hacks that will make our life painful forever.