diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index ceff4b4b1877dd32c5c4772d05231a458035d0f8..b05ea72f38fd1981dce81b4a8cc37ec8fcad7108 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1511,6 +1511,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;