]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: add timer in blk_mq_start_request
authorMing Lei <tom.leiming@gmail.com>
Mon, 9 Jun 2014 16:16:41 +0000 (00:16 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 9 Jun 2014 16:20:06 +0000 (10:20 -0600)
commite755adc3248a618da74458a6781d21a245621d3e
tree0cfe6b32335a14310ffec05da4e227b9ffea15ca
parentd0b1e90b3f485da05dbc77e9ab35e7e19805fec6
blk-mq: add timer in blk_mq_start_request

This way will become consistent with non-mq case, also
avoid to update rq->deadline twice for mq.

The comment said: "We do this early, to ensure we are on
the right CPU.", but no percpu stuff is used in blk_add_timer(),
so it isn't necessary. Even when inserting from plug list, there
is no such guarantee at all.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c