···356356 }357357}358358359359-/*360360- * Use the mapping mode to choose a pool for a given CPU.361361- * Used when enqueueing an incoming RPC. Always returns362362- * a non-NULL pool pointer.359359+/**360360+ * svc_pool_for_cpu - Select pool to run a thread on this cpu361361+ * @serv: An RPC service362362+ *363363+ * Use the active CPU and the svc_pool_map's mode setting to364364+ * select the svc thread pool to use. Once initialized, the365365+ * svc_pool_map does not change.366366+ *367367+ * Return value:368368+ * A pointer to an svc_pool363369 */364364-struct svc_pool *365365-svc_pool_for_cpu(struct svc_serv *serv, int cpu)370370+struct svc_pool *svc_pool_for_cpu(struct svc_serv *serv)366371{367372 struct svc_pool_map *m = &svc_pool_map;373373+ int cpu = raw_smp_processor_id();368374 unsigned int pidx = 0;369375370376 if (serv->sv_nrpools <= 1)
+1-1
net/sunrpc/svc_xprt.c
···460460 if (test_and_set_bit(XPT_BUSY, &xprt->xpt_flags))461461 return;462462463463- pool = svc_pool_for_cpu(xprt->xpt_server, raw_smp_processor_id());463463+ pool = svc_pool_for_cpu(xprt->xpt_server);464464465465 atomic_long_inc(&pool->sp_stats.packets);466466