Commit ff7d145fd911266ae42af7552edc32681c01addb
Committed by
Jens Axboe
1 parent
5380a101d3
[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: Jens Axboe <axboe@suse.de>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
include/linux/blkdev.h
... | ... | @@ -232,7 +232,13 @@ |
232 | 232 | struct hlist_node hash; /* merge hash */ |
233 | 233 | struct rb_node rb_node; /* sort/lookup */ |
234 | 234 | |
235 | + /* | |
236 | + * two pointers are available for the IO schedulers, if they need | |
237 | + * more they have to dynamically allocate it. | |
238 | + */ | |
235 | 239 | void *elevator_private; |
240 | + void *elevator_private2; | |
241 | + | |
236 | 242 | void *completion_data; |
237 | 243 | |
238 | 244 | int rq_status; /* should split this into a few status bits */ |