OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/3] SUNPRC: remove marking service temporary sockets with XPT_CHNGBUF
[PATCH 1/3] SUNPRC: remove marking service temporary sockets with XPT_CHNGBUF [message #44710] Fri, 23 December 2011 14:54
Stanislav Kinsbursky is currently offline  Stanislav Kinsbursky
Messages: 683
Registered: October 2011
Senior Member
From: *parallels.com
This is a cleanup patch.
Temporary sockets can be TCP only. But XPT_CHNGBUF service socket flag is
checked only for UDP sockets on receive.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>

---
net/sunrpc/svcsock.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 110735f..72b05f2 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1381,8 +1381,6 @@ void svc_sock_update_bufs(struct svc_serv *serv)
spin_lock_bh(&serv->sv_lock);
list_for_each_entry(svsk, &serv->sv_permsocks, sk_xprt.xpt_list)
set_bit(XPT_CHNGBUF, &svsk->sk_xprt.xpt_flags);
- list_for_each_entry(svsk, &serv->sv_tempsocks, sk_xprt.xpt_list)
- set_bit(XPT_CHNGBUF, &svsk->sk_xprt.xpt_flags);
spin_unlock_bh(&serv->sv_lock);
}
EXPORT_SYMBOL_GPL(svc_sock_update_bufs);
Previous Topic: Re: [PATCH] move get_idle_time , get_iowait_time to sched/core.c
Next Topic: [PATCH 2/3] Lockd: don't mark freshly created sockets with XPT_CHNGBUF
Goto Forum:
  


Current Time: Wed Feb 21 19:20:10 GMT 2018