[PATCH] Block queue IO tracing support (blktrace) as of 2006-03-23
[deliverable/linux.git] / block / elevator.c
index db3d0d8296a05c908f5dd38100593217c8c7d114..5e558c4689a4f561117cf89b5c4867d045699ad8 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/init.h>
 #include <linux/compiler.h>
 #include <linux/delay.h>
+#include <linux/blktrace_api.h>
 
 #include <asm/uaccess.h>
 
@@ -333,6 +334,8 @@ void elv_insert(request_queue_t *q, struct request *rq, int where)
        struct list_head *pos;
        unsigned ordseq;
 
+       blk_add_trace_rq(q, rq, BLK_TA_INSERT);
+
        rq->q = q;
 
        switch (where) {
@@ -499,6 +502,7 @@ struct request *elv_next_request(request_queue_t *q)
                         * not be passed by new incoming requests
                         */
                        rq->flags |= REQ_STARTED;
+                       blk_add_trace_rq(q, rq, BLK_TA_ISSUE);
                }
 
                if (!q->boundary_rq || q->boundary_rq == rq) {
This page took 0.038637 seconds and 5 git commands to generate.