diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-14 00:33:38 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2011-12-14 00:33:38 +0100 |
commit | 283287a52e3c3f7f8f9da747f4b8c5202740d776 (patch) | |
tree | b5b145bcdcefc24deb68cd91bb16582286dce171 /include | |
parent | 09ac46c429464c919d04bb737b27edd84d944f02 (diff) | |
download | linux-283287a52e3c3f7f8f9da747f4b8c5202740d776.tar.gz linux-283287a52e3c3f7f8f9da747f4b8c5202740d776.tar.bz2 linux-283287a52e3c3f7f8f9da747f4b8c5202740d776.zip |
block, cfq: misc updates to cfq_io_context
Make the following changes to prepare for ioc/cic management cleanup.
* Add cic->q so that ioc can determine the associated queue without
querying cfq. This will eventually replace ->key.
* Factor out cfq_release_cic() from cic_free_func(). This function
assumes that the caller handled locking.
* Rename __cfq_exit_single_io_context() to cfq_exit_cic() and make it
take only @cic.
* Restructure cfq_cic_link() for future updates.
This patch doesn't introduce any functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/iocontext.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index 28bb621ef5a2..079aea8fd8a8 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h @@ -15,6 +15,7 @@ struct cfq_ttime { struct cfq_io_context { void *key; + struct request_queue *q; struct cfq_queue *cfqq[2]; |