linux/drivers/infiniband/hw/mthca
Christophe JAILLET 675e2694fc IB/mthca: Use non-atomic bitmap functions when possible in 'mthca_mr.c'
In 'mthca_buddy_init()', the 'buddy->bits[n]' bitmap has just been
allocated, so no concurrent accesses can occur.

The other accesses to the 'buddy->bits[n]' bitmap are protected by the
'buddy->lock' spinlock, so no concurrent accesses can occur.

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

Link: https://lore.kernel.org/r/a19b88ccdbc03972fd97306b998731814283041f.1637785902.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-11-25 13:29:06 -04:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mthca_allocator.c IB/mthca: Use non-atomic bitmap functions when possible in 'mthca_allocator.c' 2021-11-25 13:29:06 -04:00
mthca_av.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
mthca_catas.c treewide: setup_timer() -> timer_setup() (2 field) 2017-11-21 15:57:09 -08:00
mthca_cmd.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
mthca_cmd.h IB/core cleanup: Add const on args - device->process_mad 2015-06-02 09:33:13 -04:00
mthca_config_reg.h
mthca_cq.c Linux 5.10-rc6 2020-12-01 20:40:50 -04:00
mthca_dev.h RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
mthca_doorbell.h
mthca_eq.c RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
mthca_mad.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
mthca_main.c RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
mthca_mcg.c
mthca_memfree.c RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
mthca_memfree.h RDMA: Replace zero-length array with flexible-array member 2020-02-20 13:33:51 -04:00
mthca_mr.c IB/mthca: Use non-atomic bitmap functions when possible in 'mthca_mr.c' 2021-11-25 13:29:06 -04:00
mthca_pd.c
mthca_profile.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
mthca_profile.h
mthca_provider.c RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
mthca_provider.h RDMA/mthca: Combine special QP struct with mthca QP 2020-09-29 13:11:07 -03:00
mthca_qp.c RDMA: Support more than 255 rdma ports 2021-03-26 09:31:21 -03:00
mthca_reset.c IB/mthca: Remove debug prints after allocation failure 2016-12-03 13:12:52 -05:00
mthca_srq.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
mthca_uar.c
mthca_wqe.h