]> git.baikalelectronics.ru Git - kernel.git/commit
block: add io_context->active_ref
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:15:26 +0000 (13:15 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:24 +0000 (21:27 +0100)
commitf147149cdce6ad80d7c034bb8d69136650670371
treeacaaab3667e0450f0f05464426c3540c89ce4e18
parent58e61f73562e9045fc32d0623a070c4b47554868
block: add io_context->active_ref

Currently ioc->nr_tasks is used to decide two things - whether an ioc
is done issuing IOs and whether it's shared by multiple tasks.  This
patch separate out the first into ioc->active_ref, which is acquired
and released using {get|put}_io_context_active() respectively.

This will be used to associate bio's with a given task.  This patch
doesn't introduce any visible behavior change.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioc.c
block/cfq-iosched.c
include/linux/iocontext.h