]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - block/blk-mq.c
blk-mq: remove REQ_ATOM_STARTED
authorTejun Heo <tj@kernel.org>
Tue, 9 Jan 2018 16:29:52 +0000 (08:29 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 16:31:15 +0000 (09:31 -0700)
commit5a61c36398d0626bad377a7f5b9391b21e16e91d
treef64d012ea0b2c884d5171af438ddfd9d2667ce75
parent634f9e4631a88025d3b90c1884e9a1b6a13d01d2
blk-mq: remove REQ_ATOM_STARTED

After the recent updates to use generation number and state based
synchronization, we can easily replace REQ_ATOM_STARTED usages by
adding an extra state to distinguish completed but not yet freed
state.

Add MQ_RQ_COMPLETE and replace REQ_ATOM_STARTED usages with
blk_mq_rq_state() tests.  REQ_ATOM_STARTED no longer has any users
left and is removed.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c
block/blk-mq.c
block/blk-mq.h
block/blk.h