1. 04 Sep, 2011 1 commit
  2. 03 Sep, 2011 1 commit
  3. 02 Sep, 2011 2 commits
  4. 01 Sep, 2011 4 commits
  5. 31 Aug, 2011 9 commits
  6. 27 Aug, 2011 13 commits
  7. 26 Aug, 2011 7 commits
  8. 19 Aug, 2011 3 commits
    • Eric Dumazet's avatar
      sunrpc: use better NUMA affinities · 11fd165c
      Eric Dumazet authored
      Use NUMA aware allocations to reduce latencies and increase throughput.
      
      sunrpc kthreads can use kthread_create_on_node() if pool_mode is
      "percpu" or "pernode", and svc_prepare_thread()/svc_init_buffer() can
      also take into account NUMA node affinity for memory allocations.
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      CC: "J. Bruce Fields" <bfields@fieldses.org>
      CC: Neil Brown <neilb@suse.de>
      CC: David Miller <davem@davemloft.net>
      Reviewed-by: default avatarGreg Banks <gnb@fastmail.fm>
      [bfields@redhat.com: fix up caller nfs41_callback_up]
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      11fd165c
    • J. Bruce Fields's avatar
      locks: setlease cleanup · c1f24ef4
      J. Bruce Fields authored
      There's an incorrect comment here.  Also clean up the logic: the
      "rdlease" and "wrlease" locals are confusingly named, and don't really
      add anything since we can make a decision as soon as we hit one of these
      cases.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      c1f24ef4
    • J. Bruce Fields's avatar
      locks: fix tracking of inprogress lease breaks · 778fc546
      J. Bruce Fields authored
      We currently use a bit in fl_flags to record whether a lease is being
      broken, and set fl_type to the type (RDLCK or UNLCK) that it will
      eventually have.  This means that once the lease break starts, we forget
      what the lease's type *used* to be.  Breaking a read lease will then
      result in blocking read opens, even though there's no conflict--because
      the lease type is now F_UNLCK and we can no longer tell whether it was
      previously a read or write lease.
      
      So, instead keep fl_type as the original type (the type which we
      enforce), and keep track of whether we're unlocking or merely
      downgrading by replacing the single FL_INPROGRESS flag by
      FL_UNLOCK_PENDING and FL_DOWNGRADE_PENDING flags.
      
      To get this right we also need to track separate downgrade and break
      times, to handle the case where a write-leased file gets conflicting
      opens first for read, then later for write.
      
      (I first considered just eliminating the downgrade behavior
      completely--nfsv4 doesn't need it, and nobody as far as I can tell
      actually uses it currently--but Jeremy Allison tells me that Windows
      oplocks do behave this way, so Samba will probably use this some day.)
      Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      778fc546