]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: clear the throttle queue on fork
authorJosef Bacik <josef@toxicpanda.com>
Tue, 31 Jul 2018 16:39:04 +0000 (12:39 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Aug 2018 15:16:04 +0000 (09:16 -0600)
commit1f2ae8e7f32be0933e6b48741cde60fd8e2f128d
treedec6e7ee5c6b022966a69e4422d4e33a3adfbcba
parentc395793ebe5119c7ed3042e4a06fe49de693e4eb
blk-cgroup: clear the throttle queue on fork

We were hitting a panic in production where we put too many times on the
request queue.  This is because we'd get the throttle_queue of the
parent if we fork()'ed while we needed to be throttled, but we didn't
have a reference on it.  Instead just clear these flags on fork so the
child doesn't pay for the sins of its father.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/fork.c