diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-13 18:33:37 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2011-12-13 18:33:37 -0500 |
commit | a73f730d013ff2788389fd0c46ad3e5510f124e6 (patch) | |
tree | 773987c8cbec56745d46f46382ad268ed91adf98 /include | |
parent | 8ba61435d73f2274e12d4d823fde06735e8f6a54 (diff) |
block, cfq: move cfqd->cic_index to q->id
cfq allocates per-queue id using ida and uses it to index cic radix
tree from io_context. Move it to q->id and allocate on queue init and
free on queue release. This simplifies cfq a bit and will allow for
further improvements of io context life-cycle management.
This patch doesn't introduce any functional difference.
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/blkdev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 783f97c14d0a..8c8dbc4738ea 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -311,6 +311,12 @@ struct request_queue { | |||
311 | unsigned long queue_flags; | 311 | unsigned long queue_flags; |
312 | 312 | ||
313 | /* | 313 | /* |
314 | * ida allocated id for this queue. Used to index queues from | ||
315 | * ioctx. | ||
316 | */ | ||
317 | int id; | ||
318 | |||
319 | /* | ||
314 | * queue needs bounce pages for pages above this limit | 320 | * queue needs bounce pages for pages above this limit |
315 | */ | 321 | */ |
316 | gfp_t bounce_gfp; | 322 | gfp_t bounce_gfp; |