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, 30 Mar 2015 18:54:52 +0000 (12:54 -0600)
commita1adb6e64273a8fe10e3cf2d05563b301c797751
tree0dac81405361fe49ca5a1aec80e26992cfa4d4b3
parent8d55981644465538b374a902e7b5e72cbb4a97cd
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