1. 05 7月, 2017 1 次提交
  2. 01 6月, 2017 1 次提交
    • N
      SUNRPC: ensure correct error is reported by xs_tcp_setup_socket() · 6ea44adc
      NeilBrown 提交于
      If you attempt a TCP mount from an host that is unreachable in a way
      that triggers an immediate error from kernel_connect(), that error
      does not propagate up, instead EAGAIN is reported.
      
      This results in call_connect_status receiving the wrong error.
      
      A case that it easy to demonstrate is to attempt to mount from an
      address that results in ENETUNREACH, but first deleting any default
      route.
      Without this patch, the mount.nfs process is persistently runnable
      and is hard to kill.  With this patch it exits as it should.
      
      The problem is caused by the fact that xs_tcp_force_close() eventually
      calls
            xprt_wake_pending_tasks(xprt, -EAGAIN);
      which causes an error return of -EAGAIN.  so when xs_tcp_setup_sock()
      calls
            xprt_wake_pending_tasks(xprt, status);
      the status is ignored.
      
      Fixes: 4efdd92c ("SUNRPC: Remove TCP client connection reset hack")
      Signed-off-by: NNeilBrown <neilb@suse.com>
      Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
      6ea44adc
  3. 24 5月, 2017 1 次提交
  4. 28 4月, 2017 2 次提交
  5. 26 4月, 2017 27 次提交
  6. 21 4月, 2017 1 次提交
  7. 29 3月, 2017 1 次提交
  8. 18 3月, 2017 1 次提交
    • C
      xprtrdma: Squelch kbuild sparse complaint · eed50879
      Chuck Lever 提交于
      New complaint from kbuild for 4.9.y:
      
      net/sunrpc/xprtrdma/verbs.c:489:19: sparse: incompatible types in
          comparison expression (different type sizes)
      
      verbs.c:
      489	max_sge = min(ia->ri_device->attrs.max_sge, RPCRDMA_MAX_SEND_SGES);
      
      I can't reproduce this running sparse here. Likewise, "make W=1
      net/sunrpc/xprtrdma/verbs.o" never indicated any issue.
      
      A little poking suggests that because the range of its values is
      small, gcc can make the actual width of RPCRDMA_MAX_SEND_SGES
      smaller than the width of an unsigned integer.
      
      Fixes: 16f906d6 ("xprtrdma: Reduce required number of send SGEs")
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Cc: stable@kernel.org
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      eed50879
  9. 10 3月, 2017 1 次提交
  10. 02 3月, 2017 2 次提交
  11. 28 2月, 2017 1 次提交
  12. 25 2月, 2017 1 次提交