• Josef Bacik's avatar
    inode: don't softlockup when evicting inodes · ac05fbb4
    Josef Bacik authored
    On a box with a lot of ram (148gb) I can make the box softlockup after running
    an fs_mark job that creates hundreds of millions of empty files.  This is
    because we never generate enough memory pressure to keep the number of inodes on
    our unused list low, so when we go to unmount we have to evict ~100 million
    inodes.  This makes one processor a very unhappy person, so add a cond_resched()
    in dispose_list() and if we need a resched when processing the s_inodes list do
    that and run dispose_list() on what we've currently culled.  Thanks,
    Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
    Reviewed-by: default avatarJan Kara <jack@suse.cz>
    ac05fbb4
inode.c 52.8 KB