diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 40cca4ca863b77dcb40de511d03185c6aede3404..d70d2391c8cb3e797099c3c81eeaf109c8fd3ccd 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1431,6 +1431,7 @@ static struct buffer_head * ext4_find_entry (struct inode *dir, /* * We deal with the read-ahead logic here. */ + cond_resched(); if (ra_ptr >= ra_max) { /* Refill the readahead buffer */ ra_ptr = 0;