1. 16 2月, 2012 5 次提交
  2. 15 2月, 2012 2 次提交
  3. 14 2月, 2012 1 次提交
  4. 15 12月, 2011 1 次提交
  5. 14 12月, 2011 1 次提交
  6. 13 12月, 2011 1 次提交
  7. 02 12月, 2011 1 次提交
  8. 26 11月, 2011 1 次提交
  9. 16 11月, 2011 2 次提交
  10. 09 11月, 2011 1 次提交
  11. 08 11月, 2011 6 次提交
  12. 24 10月, 2011 3 次提交
  13. 19 10月, 2011 2 次提交
  14. 18 10月, 2011 6 次提交
  15. 12 10月, 2011 2 次提交
  16. 11 10月, 2011 4 次提交
    • J
      nfsd4: move access/deny validity checks to xdr code · 04f9e664
      J. Bruce Fields 提交于
      I'd rather put more of these sorts of checks into standardized xdr
      decoders for the various types rather than have them cluttering up the
      core logic in nfs4proc.c and nfs4state.c.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      04f9e664
    • J
      nfsd4: ignore WANT bits in open downgrade · c30e92df
      J. Bruce Fields 提交于
      We don't use WANT bits yet--and sending them can probably trigger a
      BUG() further down.
      
      Cc: stable@kernel.org
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      c30e92df
    • J
      nfsd4: clean up downgrading code · 6409a5a6
      J. Bruce Fields 提交于
      In response to some review comments, get rid of the somewhat obscure
      for-loop with bitops, and improve a comment.
      Reported-by: NSteve Dickson <steved@redhat.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      6409a5a6
    • J
      nfsd4: fix state lock usage in LOCKU · 71c3bcd7
      J. Bruce Fields 提交于
      In commit 5ec094c1 "nfsd4: extend state
      lock over seqid replay logic" I modified the exit logic of all the
      seqid-based procedures except nfsd4_locku().  Fix the oversight.
      
      The result of the bug was a double-unlock while handling the LOCKU
      procedure, and a warning like:
      
      [  142.150014] WARNING: at kernel/mutex-debug.c:78 debug_mutex_unlock+0xda/0xe0()
      ...
      [  142.152927] Pid: 742, comm: nfsd Not tainted 3.1.0-rc1-SLIM+ #9
      [  142.152927] Call Trace:
      [  142.152927]  [<ffffffff8105fa4f>] warn_slowpath_common+0x7f/0xc0
      [  142.152927]  [<ffffffff8105faaa>] warn_slowpath_null+0x1a/0x20
      [  142.152927]  [<ffffffff810960ca>] debug_mutex_unlock+0xda/0xe0
      [  142.152927]  [<ffffffff813e4200>] __mutex_unlock_slowpath+0x80/0x140
      [  142.152927]  [<ffffffff813e42ce>] mutex_unlock+0xe/0x10
      [  142.152927]  [<ffffffffa03bd3f5>] nfs4_lock_state+0x35/0x40 [nfsd]
      [  142.152927]  [<ffffffffa03b0b71>] nfsd4_proc_compound+0x2a1/0x690
      [nfsd]
      [  142.152927]  [<ffffffffa039f9fb>] nfsd_dispatch+0xeb/0x230 [nfsd]
      [  142.152927]  [<ffffffffa02b1055>] svc_process_common+0x345/0x690
      [sunrpc]
      [  142.152927]  [<ffffffff81058d10>] ? try_to_wake_up+0x280/0x280
      [  142.152927]  [<ffffffffa02b16e2>] svc_process+0x102/0x150 [sunrpc]
      [  142.152927]  [<ffffffffa039f0bd>] nfsd+0xbd/0x160 [nfsd]
      [  142.152927]  [<ffffffffa039f000>] ? 0xffffffffa039efff
      [  142.152927]  [<ffffffff8108230c>] kthread+0x8c/0xa0
      [  142.152927]  [<ffffffff813e8694>] kernel_thread_helper+0x4/0x10
      [  142.152927]  [<ffffffff81082280>] ? kthread_worker_fn+0x190/0x190
      [  142.152927]  [<ffffffff813e8690>] ? gs_change+0x13/0x13
      Reported-by: NBryan Schumaker <bjschuma@netapp.com>
      Tested-by: NBryan Schumaker <bjschuma@netapp.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      71c3bcd7
  17. 27 9月, 2011 1 次提交
    • J
      nfsd4: look up stateid's per clientid · 38c2f4b1
      J. Bruce Fields 提交于
      Use a separate stateid idr per client, and lookup a stateid by first
      finding the client, then looking up the stateid relative to that client.
      
      Also some minor refactoring.
      
      This allows us to improve error returns: we can return expired when the
      clientid is not found and bad_stateid when the clientid is found but not
      the stateid, as opposed to returning expired for both cases.
      
      I hope this will also help to replace the state lock mostly by a
      per-client lock, but that hasn't been done yet.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      38c2f4b1