summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2018-01-09 17:29:52 +0100
committerJens Axboe <axboe@kernel.dk>2018-01-09 17:31:15 +0100
commit5a61c36398d0626bad377a7f5b9391b21e16e91d (patch)
treef64d012ea0b2c884d5171af438ddfd9d2667ce75 /block/blk.h
parentblk-mq: remove REQ_ATOM_COMPLETE usages from blk-mq (diff)
downloadlinux-5a61c36398d0626bad377a7f5b9391b21e16e91d.tar.xz
linux-5a61c36398d0626bad377a7f5b9391b21e16e91d.zip
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>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h
index 9cb2739edb6a..a68dbe312ea3 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -124,7 +124,6 @@ void blk_account_io_done(struct request *req);
*/
enum rq_atomic_flags {
REQ_ATOM_COMPLETE = 0,
- REQ_ATOM_STARTED,
REQ_ATOM_POLL_SLEPT,
};