Home
last modified time | relevance | path

Searched hist:"661 d4f55" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/
H A Dsbitmap.h661d4f55 Sun Nov 22 09:35:46 CST 2020 Pavel Begunkov <asml.silence@gmail.com> sbitmap: remove swap_lock

map->swap_lock protects map->cleared from concurrent modification,
however sbitmap_deferred_clear() is already atomically drains it, so
it's guaranteed to not loose bits on concurrent
sbitmap_deferred_clear().

A one threaded tag heavy test on top of nullbk showed ~1.5% t-put
increase, and 3% -> 1% cycle reduction of sbitmap_get() according to perf.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
/openbmc/linux/lib/
H A Dsbitmap.c661d4f55 Sun Nov 22 09:35:46 CST 2020 Pavel Begunkov <asml.silence@gmail.com> sbitmap: remove swap_lock

map->swap_lock protects map->cleared from concurrent modification,
however sbitmap_deferred_clear() is already atomically drains it, so
it's guaranteed to not loose bits on concurrent
sbitmap_deferred_clear().

A one threaded tag heavy test on top of nullbk showed ~1.5% t-put
increase, and 3% -> 1% cycle reduction of sbitmap_get() according to perf.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>