Skip to content

Commit

Permalink
[PATCH] Add one more pointer to struct request for IO scheduler usage
Browse files Browse the repository at this point in the history
Then we have enough room in the request to get rid of the dynamic
allocations in CFQ/AS.

Signed-off-by: Jens Axboe <axboe@suse.de>
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Sep 30, 2006
1 parent 5380a10 commit ff7d145
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,13 @@ struct request {
struct hlist_node hash; /* merge hash */
struct rb_node rb_node; /* sort/lookup */

/*
* two pointers are available for the IO schedulers, if they need
* more they have to dynamically allocate it.
*/
void *elevator_private;
void *elevator_private2;

void *completion_data;

int rq_status; /* should split this into a few status bits */
Expand Down

0 comments on commit ff7d145

Please sign in to comment.