]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ll_rw_blk: add io_context private pointer
authorJens Axboe <jens.axboe@oracle.com>
Tue, 24 Apr 2007 19:17:33 +0000 (21:17 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Mon, 30 Apr 2007 07:01:23 +0000 (09:01 +0200)
To be used by as/cfq as they see fit.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/ll_rw_blk.c
include/linux/blkdev.h

index 3de06953ac33d24ce669c35f0e8ffdbb4bcb9661..123003a9047765e09abde8c223b89e9d9f0bd8d9 100644 (file)
@@ -3741,6 +3741,7 @@ static struct io_context *current_io_context(gfp_t gfp_flags, int node)
                ret->nr_batch_requests = 0; /* because this is 0 */
                ret->aic = NULL;
                ret->cic_root.rb_node = NULL;
+               ret->ioc_data = NULL;
                /* make sure set_task_ioprio() sees the settings above */
                smp_wmb();
                tsk->io_context = ret;
index 83dcd8c0e97493cb5a385dff744f0856fd484625..a686eabe22d645e8304af1ab33ab6114783523d9 100644 (file)
@@ -116,6 +116,7 @@ struct io_context {
 
        struct as_io_context *aic;
        struct rb_root cic_root;
+       void *ioc_data;
 };
 
 void put_io_context(struct io_context *ioc);