aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r--net/sunrpc/svcsock.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 88de3d093165..1454739b4233 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1261,19 +1261,13 @@ void svc_sock_update_bufs(struct svc_serv *serv)
1261 * The number of server threads has changed. Update 1261 * The number of server threads has changed. Update
1262 * rcvbuf and sndbuf accordingly on all sockets 1262 * rcvbuf and sndbuf accordingly on all sockets
1263 */ 1263 */
1264 struct list_head *le; 1264 struct svc_sock *svsk;
1265 1265
1266 spin_lock_bh(&serv->sv_lock); 1266 spin_lock_bh(&serv->sv_lock);
1267 list_for_each(le, &serv->sv_permsocks) { 1267 list_for_each_entry(svsk, &serv->sv_permsocks, sk_xprt.xpt_list)
1268 struct svc_sock *svsk =
1269 list_entry(le, struct svc_sock, sk_xprt.xpt_list);
1270 set_bit(XPT_CHNGBUF, &svsk->sk_xprt.xpt_flags); 1268 set_bit(XPT_CHNGBUF, &svsk->sk_xprt.xpt_flags);
1271 } 1269 list_for_each_entry(svsk, &serv->sv_tempsocks, sk_xprt.xpt_list)
1272 list_for_each(le, &serv->sv_tempsocks) {
1273 struct svc_sock *svsk =
1274 list_entry(le, struct svc_sock, sk_xprt.xpt_list);
1275 set_bit(XPT_CHNGBUF, &svsk->sk_xprt.xpt_flags); 1270 set_bit(XPT_CHNGBUF, &svsk->sk_xprt.xpt_flags);
1276 }
1277 spin_unlock_bh(&serv->sv_lock); 1271 spin_unlock_bh(&serv->sv_lock);
1278} 1272}
1279EXPORT_SYMBOL_GPL(svc_sock_update_bufs); 1273EXPORT_SYMBOL_GPL(svc_sock_update_bufs);