Skip to content

A few cleanup and bugfix patches for sbitmap

Kemeng Shi linux-block lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sbitmap: don't consume nr for inactive waitqueue to avoid lost wakeupslib/sbitmap.c+6 -75 replies
2/5sbitmap: remove unnecessary calculation of alloc_hint in __sbitmap_get_shallowlib/sbitmap.c+4 -70 replies
3/5sbitmap: remove redundant check in __sbitmap_queue_get_batchlib/sbitmap.c+3 -50 replies
4/5sbitmap: rewrite sbitmap_find_bit_in_index to reduce repeat codelib/sbitmap.c+14 -150 replies
5/5sbitmap: add sbitmap_find_bit to remove repeat code in __sbitmap_get/__sbitmap_get_shallowlib/sbitmap.c+35 -370 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] A few cleanup and bugfix patches for sbitmap

Hi, this series contain a patch to fix protential wakup lost in __sbq_wake_up and some random cleanup patches to remove unnecessary check and repeat code.
Thanks.

Kemeng Shi (5):
sbitmap: don't consume nr for inactive waitqueue to avoid lost wakeups
sbitmap: remove unnecessary calculation of alloc_hint in
__sbitmap_get_shallow
sbitmap: remove redundant check in __sbitmap_queue_get_batch
sbitmap: rewrite sbitmap_find_bit_in_index to reduce repeat code
sbitmap: add sbitmap_find_bit to remove repeat code in
__sbitmap_get/__sbitmap_get_shallow

 lib/sbitmap.c | 111 +++++++++++++++++++++++---------------------------
 1 file changed, 51 insertions(+), 60 deletions(-)
Signature · 1 line
2.30.0