1. 07 2月, 2009 1 次提交
    • I
      net/sunrpc/xprtsock.c: some common code found · 1f0fa154
      Ilpo Järvinen 提交于
      $ 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: NIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f0fa154
  2. 04 2月, 2009 1 次提交
    • R
      sunrpc: fix rdma dependencies · 55128bc2
      Randy Dunlap 提交于
      Fix sunrpc/rdma build dependencies.
      Survives 12 build combinations of INET, IPV6, SUNRPC,
      INFINIBAND, and INFINIBAND_ADDR_TRANS.
      
      ERROR: "rdma_destroy_id" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_connect" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_destroy_qp" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_create_id" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_create_qp" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_resolve_route" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_disconnect" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_resolve_addr" [net/sunrpc/xprtrdma/xprtrdma.ko] undefined!
      ERROR: "rdma_accept" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      ERROR: "rdma_destroy_id" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      ERROR: "rdma_listen" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      ERROR: "rdma_create_id" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      ERROR: "rdma_create_qp" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      ERROR: "rdma_bind_addr" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      ERROR: "rdma_disconnect" [net/sunrpc/xprtrdma/svcrdma.ko] undefined!
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      55128bc2
  3. 28 1月, 2009 1 次提交
  4. 22 1月, 2009 1 次提交
  5. 08 1月, 2009 3 次提交
  6. 07 1月, 2009 2 次提交
  7. 06 1月, 2009 1 次提交
  8. 24 12月, 2008 20 次提交
  9. 15 12月, 2008 1 次提交
  10. 11 12月, 2008 1 次提交
  11. 26 11月, 2008 2 次提交
  12. 25 11月, 2008 1 次提交
  13. 21 11月, 2008 1 次提交
  14. 14 11月, 2008 3 次提交
  15. 03 11月, 2008 1 次提交