diff options
author | wuchi <wuchi.zero@gmail.com> | 2022-06-05 17:58:35 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-25 19:58:55 +0300 |
commit | fbb564a557809466c171b95f8d593a0972450ff2 (patch) | |
tree | 9d4db32a35428644a80a8b96c48b898063f7a98e /drivers/nvme/target/passthru.c | |
parent | e531485a0a0e0a06644de1b639502471415d5e12 (diff) | |
download | linux-fbb564a557809466c171b95f8d593a0972450ff2.tar.xz |
lib/sbitmap: Fix invalid loop in __sbitmap_queue_get_batch()
1. Getting next index before continue branch.
2. Checking free bits when setting the target bits. Otherwise,
it may reuse the busying bits.
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Link: https://lore.kernel.org/r/20220605145835.26916-1-wuchi.zero@gmail.com
Fixes: 9672b0d43782 ("sbitmap: add __sbitmap_queue_get_batch()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/target/passthru.c')
0 files changed, 0 insertions, 0 deletions