Skip to content

Commit

Permalink
ll_rw_blk: add io_context private pointer
Browse files Browse the repository at this point in the history
To be used by as/cfq as they see fit.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Apr 30, 2007
1 parent 91fac31 commit 4e521c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4e521c2

Please sign in to comment.