diff mbox series

sbitmap: remove stale comment in sbq_calc_wake_batch

Message ID 20240115145626.665562-1-shikemeng@huaweicloud.com (mailing list archive)
State New, archived
Headers show
Series sbitmap: remove stale comment in sbq_calc_wake_batch | expand

Commit Message

Kemeng Shi Jan. 15, 2024, 2:56 p.m. UTC
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>
---
 lib/sbitmap.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Jens Axboe Jan. 16, 2024, 4:58 p.m. UTC | #1
On Mon, 15 Jan 2024 22:56:26 +0800, Kemeng Shi wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] sbitmap: remove stale comment in sbq_calc_wake_batch
      commit: 5c7fa5c8ad79a1d7cc9f59636e2f99e8b5471248

Best regards,
diff mbox series

Patch

diff --git a/lib/sbitmap.c b/lib/sbitmap.c
index d0a5081dfd12..92c6b1fd8989 100644
--- a/lib/sbitmap.c
+++ b/lib/sbitmap.c
@@ -388,11 +388,6 @@  static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq,
 	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
 	 * be a partial word. There are depth / bits_per_word full words and
 	 * depth % bits_per_word bits left over. In bitwise arithmetic: