1. 19 Nov, 2010 4 commits
    • J. Bruce Fields's avatar
      svcrpc: simplify svc_close_all · f8c0d226
      J. Bruce Fields authored
      There's no need to be fooling with XPT_BUSY now that all the threads
      are gone.
      
      The list_del_init() here could execute at the same time as the
      svc_xprt_enqueue()'s list_add_tail(), with undefined results.  We don't
      really care at this point, but it might result in a spurious
      list-corruption warning or something.
      
      And svc_close() isn't adding any value; just call svc_delete_xprt()
      directly.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      f8c0d226
    • J. Bruce Fields's avatar
      nfsd4: centralize more calls to svc_xprt_received · ca7896cd
      J. Bruce Fields authored
      Follow up on b48fa6b9 by moving all the
      svc_xprt_received() calls for the main xprt to one place.  The clearing
      of XPT_BUSY here is critical to the correctness of the server, so I'd
      prefer it to be obvious where we do it.
      
      The only substantive result is moving svc_xprt_received() after
      svc_receive_deferred().  Other than a (likely insignificant) delay
      waking up the next thread, that should be harmless.
      
      Also reshuffle the exit code a little to skip a few other steps that we
      don't care about the in the svc_delete_xprt() case.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      ca7896cd
    • J. Bruce Fields's avatar
      svcrpc: don't set then immediately clear XPT_DEFERRED · 62bac4af
      J. Bruce Fields authored
      There's no harm to doing this, since the only caller will immediately
      call svc_enqueue() afterwards, ensuring we don't miss the remaining
      deferred requests just because XPT_DEFERRED was briefly cleared.
      
      But why not just do this the simple way?
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      62bac4af
    • Dan Carpenter's avatar
      nfsd: fix NULL dereference in setattr() · 43b0178e
      Dan Carpenter authored
      The original code would oops if this were called from nfsd4_setattr()
      because "filpp" is NULL.
      
      (Note this case is currently impossible, as long as we only give out
      read delegations.)
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      43b0178e
  2. 16 Nov, 2010 1 commit
  3. 15 Nov, 2010 33 commits
  4. 14 Nov, 2010 2 commits