kmemcg: account certain kmem allocations to memcg
[cascardo/linux.git] / fs / proc / fd.c
index 3c2a915..56afa5e 100644 (file)
@@ -258,6 +258,7 @@ static int proc_readfd_common(struct file *file, struct dir_context *ctx,
                                     name, len, instantiate, p,
                                     (void *)(unsigned long)fd))
                        goto out_fd_loop;
+               cond_resched();
                rcu_read_lock();
        }
        rcu_read_unlock();