diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index a7b7e0783eed..3f7b3836166c 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -1430,6 +1430,7 @@ restart: /* * We deal with the read-ahead logic here. */ + cond_resched(); if (ra_ptr >= ra_max) { /* Refill the readahead buffer */ ra_ptr = 0;