From: Louis Rilling Date: Fri, 4 Dec 2009 13:52:41 +0000 (+0100) Subject: block: Fix io_context leak after clone with CLONE_IO X-Git-Tag: v2.6.33-rc1~379^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61cc74fbb87af6aa551a06a370590c9bc07e29d9;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed