blk-mq: Simplify request completion state
authorKeith Busch <keith.busch@intel.com>
Wed, 14 Nov 2018 16:26:01 +0000 (09:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Nov 2018 19:06:55 +0000 (12:06 -0700)
commit2cdcbe98804e8c6a34c556ad843414049ab9d42a
treed60a4eb71ba4e8cb21f1147c79c2c73606078f25
parent5f2b393a8ef678233e831edc2247109042593ce2
blk-mq: Simplify request completion state

There are no more users relying on blk-mq request states to prevent
double completions, so replace the relatively expensive cmpxchg operation
with WRITE_ONCE.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h