summaryrefslogtreecommitdiff
path: root/net/rxrpc/rxkad.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-11-22 18:35:45 +0300
committerJens Axboe <axboe@kernel.dk>2020-12-08 03:12:49 +0300
commitb78beea038a3087df63bba7adaacb476a8ca95af (patch)
tree296886e70357e7c8b78718e3604126d4867c1e0e /net/rxrpc/rxkad.c
parentf6f371f7db42917c7b2a861c4fc923cb352ce5a1 (diff)
downloadlinux-b78beea038a3087df63bba7adaacb476a8ca95af.tar.xz
sbitmap: optimise sbitmap_deferred_clear()
Because of spinlocks and atomics sbitmap_deferred_clear() have to reload &sb->map[index] on each access even though the map address won't change. Pass in sbitmap_word instead of {sb, index}, so it's cached in a variable. It also improves code generation of sbitmap_find_bit_in_index(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Reviewed-by: John Garry <john.garry@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/rxrpc/rxkad.c')
0 files changed, 0 insertions, 0 deletions