Commit ff7d145f authored by Jens Axboe's avatar Jens Axboe Committed by Jens Axboe

[PATCH] Add one more pointer to struct request for IO scheduler usage

Then we have enough room in the request to get rid of the dynamic
allocations in CFQ/AS.
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
parent 5380a101
...@@ -232,7 +232,13 @@ struct request { ...@@ -232,7 +232,13 @@ struct request {
struct hlist_node hash; /* merge hash */ struct hlist_node hash; /* merge hash */
struct rb_node rb_node; /* sort/lookup */ 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_private;
void *elevator_private2;
void *completion_data; void *completion_data;
int rq_status; /* should split this into a few status bits */ int rq_status; /* should split this into a few status bits */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment