Commit 604f2f56 authored by Jaegeuk Kim's avatar Jaegeuk Kim Committed by Jaegeuk Kim
Browse files

BACKPORT: f2fs: don't get FREEZE lock in f2fs_evict_inode in frozen fs



Let's purge inode cache in order to avoid the below deadlock.

[freeze test]                         shrinkder
freeze_super
 - pwercpu_down_write(SB_FREEZE_FS)
                                       - super_cache_scan
                                         - down_read(&sb->s_umount)
                                           - prune_icache_sb
                                            - dispose_list
                                             - evict
                                              - f2fs_evict_inode
thaw_super
 - down_write(&sb->s_umount);
                                              - __percpu_down_read(SB_FREEZE_FS)

Bug: 242127451
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Change-Id: Ifa01aca90eab6968c5e511fb3819854121aa9b7c
(cherry picked from commit e3d44a00)
parent 59483514
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment