Re: [PATCH v2] RDMA/rtrs-clt: use find_next_zero_bit() for permit allocation
From: Leon Romanovsky
Date: Wed Sep 02 2026 - 06:19:47 EST
On Wed, 19 Aug 2026 00:35:13 +0800, Liu Zhenlong wrote:
> __rtrs_get_permit() scans permits_map with find_first_zero_bit() and
> claims the bit with test_and_set_bit_lock(), restarting from bit 0 on a
> lost race. Use find_next_zero_bit() to resume from the last position so
> a lost race does not rescan the already-set low bits; on reaching the
> end, wrap to the beginning to exhaust the map.
>
>
> [...]
Applied, thanks!
[1/1] RDMA/rtrs-clt: use find_next_zero_bit() for permit allocation
https://git.kernel.org/rdma/rdma/c/e1ab109df034ee
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>