diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2010-03-01 04:57:22 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-03-01 04:57:22 -0500 |
commit | 4671a1322052425afa38fcb7980d2fd2bb0fc99b (patch) | |
tree | d31e221682a11e7af2771b426773dff249ed115c /block/blk-ioc.c | |
parent | 73e9ffdd0cc8159f876d5e29ecf2d9c1bfca544f (diff) |
block: don't access jiffies when initialising io_context
As the comment says the initial value of last_waited is never used, so
there is no need to initialise it with the current jiffies. Jiffies is
hot enough without accessing it for no reason.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-ioc.c')
-rw-r--r-- | block/blk-ioc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 98e6bf61b0ac..3f65c8aadb2f 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c | |||
@@ -91,7 +91,7 @@ struct io_context *alloc_io_context(gfp_t gfp_flags, int node) | |||
91 | spin_lock_init(&ret->lock); | 91 | spin_lock_init(&ret->lock); |
92 | ret->ioprio_changed = 0; | 92 | ret->ioprio_changed = 0; |
93 | ret->ioprio = 0; | 93 | ret->ioprio = 0; |
94 | ret->last_waited = jiffies; /* doesn't matter... */ | 94 | ret->last_waited = 0; /* doesn't matter... */ |
95 | ret->nr_batch_requests = 0; /* because this is 0 */ | 95 | ret->nr_batch_requests = 0; /* because this is 0 */ |
96 | INIT_RADIX_TREE(&ret->radix_root, GFP_ATOMIC | __GFP_HIGH); | 96 | INIT_RADIX_TREE(&ret->radix_root, GFP_ATOMIC | __GFP_HIGH); |
97 | INIT_HLIST_HEAD(&ret->cic_list); | 97 | INIT_HLIST_HEAD(&ret->cic_list); |