blk-wbt: use wq_has_sleeper() for wq active check
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Aug 2018 19:20:50 +0000 (13:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Aug 2018 21:07:31 +0000 (15:07 -0600)
commitb78820937b4762b7d30b807d7156bec1d89e4dd3
treea4500f662f1f18e496ae7660e6daca5307b82d3a
parentffa358dcaae1f2f00926484e712e06daa8953cb4
blk-wbt: use wq_has_sleeper() for wq active check

We need the memory barrier before checking the list head,
use the appropriate helper for this. The matching queue
side memory barrier is provided by set_current_state().

Tested-by: Anchal Agarwal <anchalag@amazon.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c