diff options
author | Josef Bacik <jbacik@fb.com> | 2015-03-04 16:52:52 -0500 |
---|---|---|
committer | Josef Bacik <jbacik@fb.com> | 2015-08-18 10:20:09 -0700 |
commit | ac05fbb40062411ea1b722aa2cede7feaa94f1b4 (patch) | |
tree | 302f21a7e8e25efd99010fe09fc2057262eadf19 /fs/super.c | |
parent | c7f5408493aeb01532927b2276316797a03ed6ee (diff) | |
download | linux-rpi-ac05fbb40062411ea1b722aa2cede7feaa94f1b4.tar.gz linux-rpi-ac05fbb40062411ea1b722aa2cede7feaa94f1b4.tar.bz2 linux-rpi-ac05fbb40062411ea1b722aa2cede7feaa94f1b4.zip |
inode: don't softlockup when evicting inodes
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: Josef Bacik <jbacik@fb.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/super.c')
0 files changed, 0 insertions, 0 deletions