RE: [PATCH 14/34] PCI: hv: switch hv_get_dom_num() to use atomic find_bit()

2023-11-18 Thread Michael Kelley
From: Yury Norov Sent: Saturday, November 18, 2023 7:51 AM > > The function traverses bitmap with for_each_clear_bit() just to allocate > a bit atomically. We can do it better with a dedicated find_and_set_bit(). > > Signed-off-by: Yury Norov > --- > drivers/pci/controller/pci-hyperv.c | 7 ++

[PATCH 14/34] PCI: hv: switch hv_get_dom_num() to use atomic find_bit()

2023-11-18 Thread Yury Norov
The function traverses bitmap with for_each_clear_bit() just to allocate a bit atomically. We can do it better with a dedicated find_and_set_bit(). Signed-off-by: Yury Norov --- drivers/pci/controller/pci-hyperv.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers