You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ilpo Järvinen
1f0fa15432
net/sunrpc/xprtsock.c: some common code found
$ diff-funcs xs_udp_write_space net/sunrpc/xprtsock.c
net/sunrpc/xprtsock.c xs_tcp_write_space
--- net/sunrpc/xprtsock.c:xs_udp_write_space()
+++ net/sunrpc/xprtsock.c:xs_tcp_write_space()
@@ -1,4 +1,4 @@
- * xs_udp_write_space - callback invoked when socket buffer space
+ * xs_tcp_write_space - callback invoked when socket buffer space
* becomes available
* @sk: socket whose state has changed
*
@@ -7,12 +7,12 @@
* progress, otherwise we'll waste resources thrashing kernel_sendmsg
* with a bunch of small requests.
*/
-static void xs_udp_write_space(struct sock *sk)
+static void xs_tcp_write_space(struct sock *sk)
{
read_lock(&sk->sk_callback_lock);
- /* from net/core/sock.c:sock_def_write_space */
- if (sock_writeable(sk)) {
+ /* from net/core/stream.c:sk_stream_write_space */
+ if (sk_stream_wspace(sk) >= sk_stream_min_wspace(sk)) {
struct socket *sock;
struct rpc_xprt *xprt;
$ codiff net/sunrpc/xprtsock.o net/sunrpc/xprtsock.o.new
net/sunrpc/xprtsock.c:
xs_tcp_write_space | -163
xs_udp_write_space | -163
2 functions changed, 326 bytes removed
net/sunrpc/xprtsock.c:
xs_write_space | +179
1 function changed, 179 bytes added
net/sunrpc/xprtsock.o.new:
3 functions changed, 179 bytes added, 326 bytes removed, diff: -147
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
16 years ago |
.. |
auth_gss
|
rpc: add service field to new upcall
|
16 years ago |
xprtrdma
|
rpc/rdma: goto instead of copypaste
|
16 years ago |
Kconfig
|
sunrpc: fix rdma dependencies
|
16 years ago |
Makefile
|
…
|
|
auth.c
|
Merge branch 'devel' into next
|
16 years ago |
auth_generic.c
|
SUNRPC: Fix a performance regression in the RPC authentication code
|
16 years ago |
auth_null.c
|
…
|
|
auth_unix.c
|
…
|
|
cache.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
clnt.c
|
Merge branch 'devel' into next
|
16 years ago |
rpc_pipe.c
|
zero i_uid/i_gid on inode allocation
|
16 years ago |
rpcb_clnt.c
|
net: replace NIPQUAD() in net/*/
|
16 years ago |
sched.c
|
…
|
|
socklib.c
|
…
|
|
stats.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
sunrpc_syms.c
|
…
|
|
svc.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
svc_xprt.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
svcauth.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
svcauth_unix.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
svcsock.c
|
SUNRPC: The sunrpc server code should not be used by out-of-tree modules
|
16 years ago |
sysctl.c
|
…
|
|
timer.c
|
…
|
|
xdr.c
|
SUNRPC: Convert the xdr helpers and rpc_pipefs to EXPORT_SYMBOL_GPL
|
16 years ago |
xprt.c
|
sunrpc: do not pin sunrpc module in the memory
|
16 years ago |
xprtsock.c
|
net/sunrpc/xprtsock.c: some common code found
|
16 years ago |