diff options
-rw-r--r-- | fs/ext4/extents.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 593091537e76..cfdc51e30257 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -2835,6 +2835,9 @@ again: | |||
2835 | err = -EIO; | 2835 | err = -EIO; |
2836 | break; | 2836 | break; |
2837 | } | 2837 | } |
2838 | /* Yield here to deal with large extent trees. | ||
2839 | * Should be a no-op if we did IO above. */ | ||
2840 | cond_resched(); | ||
2838 | if (WARN_ON(i + 1 > depth)) { | 2841 | if (WARN_ON(i + 1 > depth)) { |
2839 | err = -EIO; | 2842 | err = -EIO; |
2840 | break; | 2843 | break; |