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 |
.. |
9p
|
net/9p: fid->fid is used uninitialized
|
16 years ago |
802
|
net: replace uses of __constant_{endian}
|
16 years ago |
8021q
|
net: replace uses of __constant_{endian}
|
16 years ago |
appletalk
|
net: replace uses of __constant_{endian}
|
16 years ago |
atm
|
lec: convert to net_device_ops
|
16 years ago |
ax25
|
ax25: more common return path joining
|
16 years ago |
bluetooth
|
bluetooth: driver API update
|
16 years ago |
bridge
|
net: replace uses of __constant_{endian}
|
16 years ago |
can
|
net: replace uses of __constant_{endian}
|
16 years ago |
core
|
gro: Fix frag_list merging on imprecisely split packets
|
16 years ago |
dcb
|
DCB: fix kfree(skb)
|
16 years ago |
dccp
|
dccp: Debugging functions for feature negotiation
|
16 years ago |
decnet
|
net: replace uses of __constant_{endian}
|
16 years ago |
dsa
|
net: replace uses of __constant_{endian}
|
16 years ago |
econet
|
net: replace uses of __constant_{endian}
|
16 years ago |
ethernet
|
eth: Declare an optimized compare_ether_addr_64bits() function
|
16 years ago |
ipv4
|
ipmr: use goto to common label instead of opencoding
|
16 years ago |
ipv6
|
ipv6/addrconf: common code located
|
16 years ago |
ipx
|
net: replace uses of __constant_{endian}
|
16 years ago |
irda
|
net: replace uses of __constant_{endian}
|
16 years ago |
iucv
|
s390: remove s390_root_dev_*()
|
16 years ago |
key
|
af_key: initialize xfrm encap_oa
|
16 years ago |
lapb
|
…
|
|
llc
|
net: replace uses of __constant_{endian}
|
16 years ago |
mac80211
|
mac80211: Cancel the dynamic ps timer in ioctl_siwpower.
|
16 years ago |
netfilter
|
net: Partially allow skb destructors to be used on receive path
|
16 years ago |
netlabel
|
netlabel: Update kernel configuration API
|
16 years ago |
netlink
|
netlink: change return-value logic of netlink_broadcast()
|
16 years ago |
netrom
|
netrom: convert to net_device_ops
|
16 years ago |
packet
|
net: packet socket packet_lookup_frame fix
|
16 years ago |
phonet
|
net: replace uses of __constant_{endian}
|
16 years ago |
rfkill
|
net/rfkill/rfkill.c: fix unused rfkill_led_trigger() warning
|
16 years ago |
rose
|
rose: convert to network_device_ops
|
16 years ago |
rxrpc
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
|
16 years ago |
sched
|
pkt_sched: sch_htb: Use workqueue to schedule after too many events.
|
16 years ago |
sctp
|
net: replace uses of __constant_{endian}
|
16 years ago |
sunrpc
|
net/sunrpc/xprtsock.c: some common code found
|
16 years ago |
tipc
|
net/tipc/bcast.h: use ARRAY_SIZE
|
16 years ago |
unix
|
introduce new LSM hooks where vfsmount is available.
|
16 years ago |
wanrouter
|
netdevice wanrouter: Convert directly reference of netdev->priv
|
16 years ago |
wimax
|
netlink: change return-value logic of netlink_broadcast()
|
16 years ago |
wireless
|
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
|
16 years ago |
x25
|
net: replace uses of __constant_{endian}
|
16 years ago |
xfrm
|
Revert "xfrm: For 32/64 compatability wrt. xfrm_usersa_info"
|
16 years ago |
Kconfig
|
Phonet: move to Networking options like other protocol stacks
|
16 years ago |
Makefile
|
wimax: Makefile, Kconfig and docbook linkage for the stack
|
16 years ago |
TUNABLE
|
…
|
|
compat.c
|
reintroduce accept4
|
16 years ago |
nonet.c
|
…
|
|
socket.c
|
[CVE-2009-0029] System call wrappers part 22
|
16 years ago |
sysctl_net.c
|
missing bits of net-namespace / sysctl
|
17 years ago |