Re: [PATCH] sunrpc: drop unneeded nrpools check in svc_pool_for_cpu()

From: Chuck Lever

Date: Wed Jul 08 2026 - 09:06:43 EST




On Wed, Jul 8, 2026, at 8:00 AM, Jeff Layton wrote:
> As Neil pointed out in review:
>
> "The values stored in svc_pool_map.to_pool are all less than
> svc_pool_map.npools. So that if() condition cannot be true."
>
> Drop the useless check from this hotpath.
>
> Suggested-by: NeilBrown <neil@xxxxxxxxxx>
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
> ---
> Chuck, feel free to fold this into 5/5 of the pool_mode series.

Folded in to 5/5 and pushed out to nfsd-testing.

--
Chuck Lever