sbitmap: add helpers for add/del wait queue handling
authorJens Axboe <axboe@kernel.dk>
Thu, 20 Dec 2018 15:49:00 +0000 (08:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Dec 2018 19:17:05 +0000 (12:17 -0700)
commit9f6b7ef6c3ebe35be77b0ae3cf12e4d25ae80420
treedd94ebc8b17053087b9a459beebdd4ed18ad326d
parent3a762de55b4ede47a5369f57d0f92979738be638
sbitmap: add helpers for add/del wait queue handling

After commit 5d2ee7122c73, users of sbitmap that need wait queue
handling must use the provided helpers. But we only added
prepare_to_wait()/finish_wait() style helpers, add the equivalent
add_wait_queue/list_del wrappers as we..

This is needed to ensure kyber plays by the sbitmap waitqueue
rules.

Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/sbitmap.h
lib/sbitmap.c