SUNPRC: remove marking service temporary sockets with XPT_CHNGBUF
Subsystems (4)
RFC PATCH 1/1 SUNPRC: remove marking service temporary sockets with XPT_CHNGBUF
This is a cleanup patch.
Service temporary sockets can be TCP or RDMA only. But XPT_CHNGBUF service socket flag is checked only for UDP sockets on receive.
Thus (if I don't miss something non-obvious) this bit raising for temporary sockets can be removed.
--- net/sunrpc/svcsock.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
net/sunrpc/svcsock.c +0 -2
@@ -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);
Quoted 17 lines · Stanislav Kinsbursky
This is a cleanup patch.
Service temporary sockets can be TCP or RDMA only. ButXPT_CHNGBUFservice socket flag is checked only for UDP sockets on receive.
Thus (if I don't miss something non-obvious) this bit raising for temporary sockets can be removed.Signed-off-by Stanislav Kinsbursky <[email protected]>--- net/sunrpc/svcsock.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)net/sunrpc/svcsock.c +0
-0
net/sunrpc/svcsock.c void svc_sock_update_bufs(struct svc_serv *serv) · line 1386
Quoted 8 lines
net/sunrpc/svcsock.c +0
-2@@ -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);
I'm assuming that Bruce will prefer to carry this, since it is completely orthogonal to the net namespace patchsets.
Signature · 6 lines
Trond Myklebust Linux NFS client maintainer NetApp [email protected] www.netapp.com
Quoted 5 lines · Stanislav Kinsbursky
This is a cleanup patch.
Service temporary sockets can be TCP or RDMA only. ButXPT_CHNGBUFservice socket flag is checked only for UDP sockets on receive.
Thus (if I don't miss something non-obvious) this bit raising for temporary sockets can be removed.
Yes, I believe that's correct, it's leftover cleanup from 9660439861aa8dbd5e2b8087f33e20760c2c9afc "svcrpc: take advantage of tcp autotuning".
I'll ignore the "RFC" marking and apply unless you tell me otherwise....
--b.
Quoted 22 lines
Signed-off-by Stanislav Kinsbursky <[email protected]>--- net/sunrpc/svcsock.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)net/sunrpc/svcsock.c +0
-3@@ -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); --
Quoted 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html