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

David Sterba
2023-09-13T17:03:11Z

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@bytedance.com>
> Reviewed-by: Muchun Song <songmuchun@bytedance.com>
> CC: Chris Mason <clm@fb.com>
> CC: Josef Bacik <josef@toxicpanda.com>
> CC: David Sterba <dsterba@suse.com>

Acked-by: David Sterba <dsterba@suse.com>