1. 10 9月, 2012 1 次提交
    • J
      nfsd: remove unused listener-removal interfaces · eccf50c1
      J. Bruce Fields 提交于
      You can use nfsd/portlist to give nfsd additional sockets to listen on.
      In theory you can also remove listening sockets this way.  But nobody's
      ever done that as far as I can tell.
      
      Also this was partially broken in 2.6.25, by
      a217813f "knfsd: Support adding
      transports by writing portlist file".
      
      (Note that we decide whether to take the "delfd" case by checking for a
      digit--but what's actually expected in that case is something made by
      svc_one_sock_name(), which won't begin with a digit.)
      
      So, let's just rip out this stuff.
      Acked-by: NNeilBrown <neilb@suse.de>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      eccf50c1
  2. 22 8月, 2012 6 次提交
  3. 21 8月, 2012 1 次提交
    • J
      svcrpc: fix BUG() in svc_tcp_clear_pages · be1e4444
      J. Bruce Fields 提交于
      Examination of svc_tcp_clear_pages shows that it assumes sk_tcplen is
      consistent with sk_pages[] (in particular, sk_pages[n] can't be NULL if
      sk_tcplen would lead us to expect n pages of data).
      
      svc_tcp_restore_pages zeroes out sk_pages[] while leaving sk_tcplen.
      This is OK, since both functions are serialized by XPT_BUSY.  However,
      that means the inconsistency must be repaired before dropping XPT_BUSY.
      
      Therefore we should be ensuring that svc_tcp_save_pages repairs the
      problem before exiting svc_tcp_recv_record on error.
      
      Symptoms were a BUG() in svc_tcp_clear_pages.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      be1e4444
  4. 28 6月, 2012 1 次提交
  5. 16 5月, 2012 1 次提交
  6. 22 4月, 2012 1 次提交
  7. 12 3月, 2012 1 次提交
    • T
      SUNRPC: Fix a few sparse warnings · 09acfea5
      Trond Myklebust 提交于
      net/sunrpc/svcsock.c:412:22: warning: incorrect type in assignment
      (different address spaces)
       - svc_partial_recvfrom now takes a struct kvec, so the variable
         save_iovbase needs to be an ordinary (void *)
      
      Make a bunch of variables in net/sunrpc/xprtsock.c static
      
      Fix a couple of "warning: symbol 'foo' was not declared. Should it be
      static?" reports.
      
      Fix a couple of conflicting function declarations.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      09acfea5
  8. 04 2月, 2012 1 次提交
  9. 01 2月, 2012 2 次提交
  10. 07 12月, 2011 1 次提交
  11. 23 11月, 2011 1 次提交
  12. 01 11月, 2011 1 次提交
  13. 14 9月, 2011 1 次提交
  14. 16 7月, 2011 1 次提交
  15. 15 7月, 2011 1 次提交
  16. 10 4月, 2011 1 次提交
    • J
      svcrpc: complete svsk processing on cb receive failure · 8985ef0b
      J. Bruce Fields 提交于
      Currently when there's some failure to receive a callback (because we
      couldn't find a matching xid, for example), we exit svc_recv with
      sk_tcplen still set but without any pages saved with the socket.  This
      will cause a crash later in svc_tcp_restore_pages.
      
      Instead, make sure we reset that tcp information whether the callback
      received failed or succeeded.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      8985ef0b
  17. 08 4月, 2011 7 次提交
  18. 23 2月, 2011 1 次提交
  19. 26 1月, 2011 1 次提交
  20. 12 1月, 2011 1 次提交
  21. 07 1月, 2011 4 次提交
  22. 18 12月, 2010 1 次提交
  23. 26 10月, 2010 1 次提交
  24. 19 10月, 2010 1 次提交
  25. 02 10月, 2010 1 次提交