Searched hist:"61 cc74fb" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/block/ |
H A D | blk-ioc.c | 61cc74fb Fri Dec 04 07:52:41 CST 2009 Louis Rilling <louis.rilling@kerlabs.com> 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: Louis Rilling <louis.rilling@kerlabs.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> 61cc74fb Fri Dec 04 07:52:41 CST 2009 Louis Rilling <louis.rilling@kerlabs.com> 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: Louis Rilling <louis.rilling@kerlabs.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
|