mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
sbitmap: remove stale comment in sbq_calc_wake_batch
After commit 106397376c036 ("sbitmap: fix batching wakeup"), we may wake up more than one queue for each batch. Just remove stale comment that we wake up only one queue for each batch. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Link: https://lore.kernel.org/r/20240115145626.665562-1-shikemeng@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
521277d12b
commit
5c7fa5c8ad
@ -388,11 +388,6 @@ static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq,
|
|||||||
unsigned int shallow_depth;
|
unsigned int shallow_depth;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For each batch, we wake up one queue. We need to make sure that our
|
|
||||||
* batch size is small enough that the full depth of the bitmap,
|
|
||||||
* potentially limited by a shallow depth, is enough to wake up all of
|
|
||||||
* the queues.
|
|
||||||
*
|
|
||||||
* Each full word of the bitmap has bits_per_word bits, and there might
|
* Each full word of the bitmap has bits_per_word bits, and there might
|
||||||
* be a partial word. There are depth / bits_per_word full words and
|
* be a partial word. There are depth / bits_per_word full words and
|
||||||
* depth % bits_per_word bits left over. In bitwise arithmetic:
|
* depth % bits_per_word bits left over. In bitwise arithmetic:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user