From mboxrd@z Thu Jan 1 00:00:00 1970 From: Muchun Song Date: Tue, 25 Jul 2023 11:17:24 +0800 Subject: [Cluster-devel] [PATCH v2 02/47] mm: shrinker: remove redundant shrinker_rwsem in debugfs operations In-Reply-To: <20230724094354.90817-3-zhengqi.arch@bytedance.com> References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-3-zhengqi.arch@bytedance.com> Message-ID: <210C013C-AB14-45BC-AB2E-199FF7F5E523@linux.dev> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > On Jul 24, 2023, at 17:43, Qi Zheng wrote: > > The debugfs_remove_recursive() will wait for debugfs_file_put() to return, > so the shrinker will not be freed when doing debugfs operations (such as > shrinker_debugfs_count_show() and shrinker_debugfs_scan_write()), so there > is no need to hold shrinker_rwsem during debugfs operations. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song Thanks.