Re: [PATCH] sunrpc: drop unneeded nrpools check in svc_pool_for_cpu()
"Chuck Lever" <[email protected]>
| Newsgroups | gmane.linux.nfs,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
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-+NVA1uvv1dVBDLzU/[email protected]> > Signed-off-by: Jeff Layton <[email protected]> > --- > 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