1. 01 Feb, 2008 1 commit
  2. 07 May, 2007 1 commit
    • Marc Eshel's avatar
      lockd: add code to handle deferred lock requests · 1a8322b2
      Marc Eshel authored
      
      Rewrite nlmsvc_lock() to use the asynchronous interface.
      
      As with testlock, we answer nlm requests in nlmsvc_lock by first looking up
      the block and then using the results we find in the block if B_QUEUED is
      set, and calling vfs_lock_file() otherwise.
      
      If this a new lock request and we get -EINPROGRESS return on a non-blocking
      request then we defer the request.
      
      Also modify nlmsvc_unlock() to call the filesystem method if appropriate.
      Signed-off-by: default avatarMarc Eshel <eshel@almaden.ibm.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      1a8322b2
  3. 06 May, 2007 1 commit
  4. 08 Dec, 2006 1 commit
  5. 20 Oct, 2006 1 commit
  6. 17 Oct, 2006 2 commits
    • NeilBrown's avatar
      [PATCH] knfsd: Allow lockd to drop replies as appropriate · d343fce1
      NeilBrown authored
      
      It is possible for the ->fopen callback from lockd into nfsd to find that an
      answer cannot be given straight away (an upcall is needed) and so the request
      has to be 'dropped', to be retried later.  That error status is not currently
      propagated back.
      
      So:
        Change nlm_fopen to return nlm error codes (rather than a private
        protocol) and define a new nlm_drop_reply code.
        Cause nlm_drop_reply to cause the rpc request to get rpc_drop_reply
        when this error comes back.
        Cause svc_process to drop a request which returns a status of
        rpc_drop_reply.
      
      [akpm@osdl.org: fix warning storm]
      Cc: Marc Eshel <eshel@almaden.ibm.com>
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d343fce1
    • NeilBrown's avatar
      [PATCH] knfsd: Fix bug in recent lockd patches that can cause reclaim to fail · 4481d103
      NeilBrown authored
      
      When an nfs server shuts down, lockd needs to release all the locks even
      though the client still holds them.
      
      It should therefore not 'unmonitor' the clients, so that the files in nfs/sm
      will still be there when the nfs server restarts, so that those clients will
      be told to reclaim their locks.
      
      However the hosts are fully unmonitored, so statd may well remove the files.
      
      lockd has a test for 'sm_sticky' and avoid the unmonitor call if it is set,
      but it is currently not set.
      
      So set it when tearing down lockd.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      4481d103
  7. 04 Oct, 2006 6 commits
  8. 27 Sep, 2006 1 commit
  9. 24 Aug, 2006 1 commit
  10. 30 Jun, 2006 1 commit
  11. 26 Mar, 2006 1 commit
    • Ingo Molnar's avatar
      [PATCH] sem2mutex: fs/ · 353ab6e9
      Ingo Molnar authored
      
      Semaphore to mutex conversion.
      
      The conversion was generated via scripts, and the result was validated
      automatically via a script as well.
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
      Cc: Robert Love <rml@tech9.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: Dave Kleikamp <shaggy@austin.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      353ab6e9
  12. 21 Mar, 2006 2 commits
  13. 20 Mar, 2006 1 commit
    • J. Bruce Fields's avatar
      lockd: Remove FL_LOCKD flag · 7117bf3d
      J. Bruce Fields authored
      
      Currently lockd identifies its own locks using the FL_LOCKD flag.  This
      doesn't scale well to multiple lock managers--if we did this in nfsv4 too,
      for example, we'd be left with only one free flag bit.
      
      Instead, we just check whether the file manager ops (fl_lmops) set on this
      lock are our own.
      
      The only use for this is in nlm_traverse_locks, which uses it to find locks
      that need cleaning up when freeing a host or a file.
      
      In the long run it might be nice to do reference counting instead of
      traversing all the locks like this....
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      7117bf3d
  14. 04 Nov, 2005 1 commit
  15. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4