Skip to content
Commit 61cc74fb authored by Louis Rilling's avatar Louis Rilling Committed by Jens Axboe
Browse files

block: Fix io_context leak after clone with CLONE_IO



With CLONE_IO, copy_io() increments both ioc->refcount and ioc->nr_tasks.
However exit_io_context() only decrements ioc->refcount if ioc->nr_tasks
reaches 0.

Always call put_io_context() in exit_io_context().

Signed-off-by: default avatarLouis Rilling <louis.rilling@kerlabs.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 3c764b7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment