[PATCH] Add one more pointer to struct request for IO scheduler usage
authorJens Axboe <axboe@suse.de>
Wed, 12 Jul 2006 12:04:37 +0000 (14:04 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Sat, 30 Sep 2006 18:27:01 +0000 (20:27 +0200)
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>
include/linux/blkdev.h

index 55ef6ef..d2dc171 100644 (file)
@@ -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 */