diff options
author | Tejun Heo <tj@kernel.org> | 2018-01-09 08:29:49 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-09 09:31:15 -0700 |
commit | 67818d25738b1c9ffb8541ca875b2ae3304869d5 (patch) | |
tree | 915392d429871ac9fe061a00c7f6da9eeb85726e /block/blk-mq.h | |
parent | 1d9bd5161ba32db5665a617edc8b0723880f543e (diff) |
blk-mq: use blk_mq_rq_state() instead of testing REQ_ATOM_COMPLETE
blk_mq_check_inflight() and blk_mq_poll_hybrid_sleep() test
REQ_ATOM_COMPLETE to determine the request state. Both uses are
speculative and we can test REQ_ATOM_STARTED and blk_mq_rq_state() for
equivalent results. Replace the tests. This will allow removing
REQ_ATOM_COMPLETE usages from blk-mq.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
0 files changed, 0 insertions, 0 deletions