Skip to contentSkip to conversation

SUNRPC: drop stale comment in svc_setup_socket()

PATCH In review Stefan Hajnoczi 2 participants 2 messages Oct 27, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SUNRPC: drop stale comment in svc_setup_socket()

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);
---
 net/sunrpc/svcsock.c | 1 -
 1 file changed, 1 deletion(-)
net/sunrpc/svcsock.c +0 -1
index 0c81202..c7157eb 100644
@@ -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,
Signature · 1 line
2.4.3
#1 lore raw
Quoted 3 lines · 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:

Hm, looks like it did it before too, just in svc_tcp_init instead. Anyway, agreed that the comment doesn't look like much help, applying your patch with a shorter changelog--thanks.

--b.

Quoted 26 lines

/* 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);
---
 net/sunrpc/svcsock.c | 1 -
 1 file changed, 1 deletion(-)
net/sunrpc/svcsock.c +0 -1
index 0c81202..c7157eb 100644
@@ -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,
Signature · 1 line
2.4.3