Re: [PATCH v6 38/45] fs: super: dynamically allocate the s_shrink

From: David Sterba
Date: Wed Sep 13 2023 - 13:03:11 EST


On Mon, Sep 11, 2023 at 05:44:37PM +0800, Qi Zheng wrote:
> In preparation for implementing lockless slab shrink, use new APIs to
> dynamically allocate the s_shrink, so that it can be freed asynchronously
> via RCU. Then it doesn't need to wait for RCU read-side critical section
> when releasing the struct super_block.
>
> Signed-off-by: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
> Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> CC: Chris Mason <clm@xxxxxx>
> CC: Josef Bacik <josef@xxxxxxxxxxxxxx>
> CC: David Sterba <dsterba@xxxxxxxx>

Acked-by: David Sterba <dsterba@xxxxxxxx>