diff options
author | Tejun Heo <tj@kernel.org> | 2012-03-05 13:15:26 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-06 21:27:24 +0100 |
commit | f6e8d01bee036460e03bd4f6a79d014f98ba712e (patch) | |
tree | acaaab3667e0450f0f05464426c3540c89ce4e18 /include/linux/bio.h | |
parent | 3d48749d93a3dce732dd30a14002ab90ec4355f3 (diff) | |
download | linux-f6e8d01bee036460e03bd4f6a79d014f98ba712e.tar.gz linux-f6e8d01bee036460e03bd4f6a79d014f98ba712e.tar.bz2 linux-f6e8d01bee036460e03bd4f6a79d014f98ba712e.zip |
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>
Diffstat (limited to 'include/linux/bio.h')
0 files changed, 0 insertions, 0 deletions