]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: request deadline must be visible before marking rq as started
authorJens Axboe <axboe@fb.com>
Tue, 16 Sep 2014 16:37:37 +0000 (10:37 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 22 Sep 2014 17:54:04 +0000 (11:54 -0600)
commit157f71a96a456cf04ff8fd63f03d763f50b4a54a
tree6b7b60f296779302cc70d7c79e47b4dcc440a9be
parent98dcc00398744a177a9b9649fc0aa1bb45587521
blk-mq: request deadline must be visible before marking rq as started

When we start the request, we set the deadline and flip the bits
marking the request as started and non-complete. However, it's
important that the deadline store is ordered before flipping the
bits, otherwise we could have a small window where the request is
marked started but with an invalid deadline. This can confuse the
timeout handling.

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