diff options
author | Jens Axboe <axboe@suse.de> | 2006-03-23 20:00:26 +0100 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-03-23 20:00:26 +0100 |
commit | 2056a782f8e7e65fd4bfd027506b4ce1c5e9ccd4 (patch) | |
tree | d4fe59a7ca0c110690937085548936a4535c39db /block/elevator.c | |
parent | 6dac40a7ce2483a47b54af07afebeb84131c7228 (diff) | |
download | kernel_samsung_smdk4412-2056a782f8e7e65fd4bfd027506b4ce1c5e9ccd4.tar.gz kernel_samsung_smdk4412-2056a782f8e7e65fd4bfd027506b4ce1c5e9ccd4.tar.bz2 kernel_samsung_smdk4412-2056a782f8e7e65fd4bfd027506b4ce1c5e9ccd4.zip |
[PATCH] Block queue IO tracing support (blktrace) as of 2006-03-23
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/elevator.c b/block/elevator.c index db3d0d8296a..5e558c4689a 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -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) { |