SUNPRC: remove marking service temporary sockets with XPT_CHNGBUF
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 20 Jan 2012 12:55:39 +0000 (16:55 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 3 Feb 2012 19:26:43 +0000 (14:26 -0500)
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.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c

index 464570906f80c24190260bef957a53128202a486..b3bb18ba350a925950929307a0f22134f0c97fd9 100644 (file)
@@ -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);