sbitmap: add helper to inform the core about shallow depth limiting
authorJens Axboe <axboe@kernel.dk>
Wed, 9 May 2018 17:49:10 +0000 (11:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 May 2018 17:49:10 +0000 (11:49 -0600)
commitfb064591aa457fccc825d40b5ff7eb2212a0c266
treee220ca566496a873428812236777c26850fc1598
parent316ba5736c9caa5dbcd84085989862d2df57431d
sbitmap: add helper to inform the core about shallow depth limiting

If a user of sbitmap limits the shallow depth on his own, then
we need to inform the lower layers. Otherwise we can run into
a situation where the user has limited the depth to something
smaller than our wake batch count, which can cause hangs.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/sbitmap.h
lib/sbitmap.c