If I run an fs_mark job that creates millions of empty files and then
immediately unmount the file system I will get a softlockup during unmount.
This box has ~140gb of RAM so we never hit sufficient memory pressure to evict
enough inodes during the runtime of the benchmark, which means I see around 80
million inodes being evicted at unmount time. With this patch my box no longer
softlocks up. Thanks,
Signed-off-by: Josef Bacik <jbacik@fb.com>
list_del_init(&inode->i_lru);
evict(inode);
+ cond_resched();
}
}
inode_lru_list_del(inode);
spin_unlock(&inode->i_lock);
list_add(&inode->i_lru, &dispose);
+ cond_resched_lock(&inode_sb_list_lock);
}
spin_unlock(&inode_sb_list_lock);