]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Use non-atomic bitmap functions when possible
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 24 Nov 2021 21:40:26 +0000 (22:40 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 25 Nov 2021 17:29:06 +0000 (13:29 -0400)
commitde20fd3c4ff97cbb63dd335a5611c0fbb2cc3e14
tree4d1051dc79a19d2265bfa90b7b7375b615a634bc
parentdff944abb26d2d442b1daaa0a5b114e96ee69537
RDMA/cxgb4: Use non-atomic bitmap functions when possible

The accesses to the 'alloc->table' bitmap are protected by the
'alloc->lock' spinlock, so no concurrent accesses can happen.

So prefer the non-atomic '__[set|clear]_bit()' functions to save a few
cycles.

Link: https://lore.kernel.org/r/0c1c4505ca32f5ba4126e3e324041da191513ef2.1637789139.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/cxgb4/id_table.c