Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] SUNRPC: drop stale comment in svc_setup_socket()
@ 2015-10-27 10:23 Stefan Hajnoczi
  2015-10-27 21:16 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2015-10-27 10:23 UTC (permalink / raw)
  To: linux-nfs
  Cc: Anna Schumaker, Jeff Layton, J. Bruce Fields, Trond Myklebust,
	Stefan Hajnoczi

Since 9660439861aa8dbd5e2b8087f33e20760c2c9afc ("svcrpc: take advantage
of tcp autotuning") the svc_setup_socket() function does set the send
and receive buffer sizes so the comment is out-of-date:

  /* initialise setting must have enough space to
   * receive and respond to one request.
   */
  svc_sock_setbufsize(svsk->sk_sock, 4 * serv->sv_max_mesg,
                                     4 * serv->sv_max_mesg);

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 net/sunrpc/svcsock.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 0c81202..c7157eb 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1367,7 +1367,6 @@ EXPORT_SYMBOL_GPL(svc_sock_update_bufs);
 
 /*
  * Initialize socket for RPC use and create svc_sock struct
- * XXX: May want to setsockopt SO_SNDBUF and SO_RCVBUF.
  */
 static struct svc_sock *svc_setup_socket(struct svc_serv *serv,
 						struct socket *sock,
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-27 21:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 10:23 [PATCH] SUNRPC: drop stale comment in svc_setup_socket() Stefan Hajnoczi
2015-10-27 21:16 ` J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox