--- a/mm/memcontrol.c~mm-memcontrol-remove-dead-code-from-memory_max_write +++ a/mm/memcontrol.c @@ -6139,10 +6139,8 @@ static ssize_t memory_max_write(struct k if (nr_pages <= max) break; - if (signal_pending(current)) { - err = -EINTR; + if (signal_pending(current)) break; - } if (!drained) { drain_all_stock(memcg);