1. 02 3月, 2015 1 次提交
  2. 14 2月, 2015 1 次提交
  3. 25 1月, 2015 1 次提交
  4. 17 1月, 2015 3 次提交
  5. 13 11月, 2014 2 次提交
  6. 13 7月, 2014 1 次提交
  7. 03 3月, 2014 1 次提交
  8. 22 8月, 2013 1 次提交
  9. 29 6月, 2013 1 次提交
    • J
      locks: protect most of the file_lock handling with i_lock · 1c8c601a
      Jeff Layton 提交于
      Having a global lock that protects all of this code is a clear
      scalability problem. Instead of doing that, move most of the code to be
      protected by the i_lock instead. The exceptions are the global lists
      that the ->fl_link sits on, and the ->fl_block list.
      
      ->fl_link is what connects these structures to the
      global lists, so we must ensure that we hold those locks when iterating
      over or updating these lists.
      
      Furthermore, sound deadlock detection requires that we hold the
      blocked_list state steady while checking for loops. We also must ensure
      that the search and update to the list are atomic.
      
      For the checking and insertion side of the blocked_list, push the
      acquisition of the global lock into __posix_lock_file and ensure that
      checking and update of the  blocked_list is done without dropping the
      lock in between.
      
      On the removal side, when waking up blocked lock waiters, take the
      global lock before walking the blocked list and dequeue the waiters from
      the global list prior to removal from the fl_block list.
      
      With this, deadlock detection should be race free while we minimize
      excessive file_lock_lock thrashing.
      
      Finally, in order to avoid a lock inversion problem when handling
      /proc/locks output we must ensure that manipulations of the fl_block
      list are also protected by the file_lock_lock.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      1c8c601a
  10. 11 4月, 2013 1 次提交
  11. 06 4月, 2013 5 次提交
  12. 12 2月, 2013 2 次提交
  13. 29 6月, 2012 3 次提交
  14. 09 5月, 2012 2 次提交
  15. 12 3月, 2012 1 次提交
    • T
      NFS: Fix a number of sparse warnings · 17280175
      Trond Myklebust 提交于
      Fix a number of "warning: symbol 'foo' was not declared. Should it be
      static?" conditions.
      
      Fix 2 cases of "warning: Using plain integer as NULL pointer"
      
      fs/nfs/delegation.c:263:31: warning: restricted fmode_t degrades to integer
        - We want to allow upgrades to a WRITE delegation, but should otherwise
          consider servers that hand out duplicate delegations to be borken.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      17280175
  16. 11 3月, 2012 1 次提交
    • T
      NFSv4.0: Re-establish the callback channel on NFS4ERR_CB_PATHDOWN · ad1e3968
      Trond Myklebust 提交于
      When the NFSv4.0 server tells us that it can no-longer talk to us
      on the callback channel, we should attempt a new SETCLIENTID in
      order to re-transmit the callback channel information.
      
      Note that as long as we do not change the boot verifier, this is
      a safe procedure; the server is required to keep our state.
      
      Also move the function nfs_handle_cb_pathdown to fs/nfs/nfs4state.c,
      and change the name in order to mark it as being specific to NFSv4.0.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      ad1e3968
  17. 09 3月, 2012 1 次提交
  18. 07 3月, 2012 1 次提交
  19. 06 3月, 2012 4 次提交
  20. 19 10月, 2011 1 次提交
  21. 26 7月, 2011 1 次提交
  22. 28 5月, 2011 1 次提交
  23. 29 1月, 2011 1 次提交
  24. 07 1月, 2011 2 次提交
  25. 18 11月, 2010 1 次提交