Linux NFS development
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@primarydata.com>
To: bfields@fieldses.org
Cc: hch@infradead.org, linux-nfs@vger.kernel.org
Subject: [PATCH 0/2] nfsd: avoid taking state_lock in delegation lm_break callback
Date: Mon, 14 Jul 2014 09:13:40 -0400	[thread overview]
Message-ID: <1405343622-14385-1-git-send-email-jlayton@primarydata.com> (raw)

In the interest of pushing this series out in smaller pieces, these two
patches clean up the delegation break callback. The basic idea here is
to avoid taking the state_lock while holding the i_lock, as it's a
highly contended global lock.

Jeff Layton (2):
  nfsd: eliminate nfsd4_init_callback
  nfsd: Avoid taking state_lock while holding inode lock in
    nfsd_break_one_deleg

 fs/nfsd/nfs4callback.c | 23 +++++++++++++++-----
 fs/nfsd/nfs4state.c    | 58 +++++++++++++++++++++++++++++++++-----------------
 fs/nfsd/state.h        |  4 +++-
 3 files changed, 59 insertions(+), 26 deletions(-)

-- 
1.9.3


             reply	other threads:[~2014-07-14 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 13:13 Jeff Layton [this message]
2014-07-14 13:13 ` [PATCH 1/2] nfsd: eliminate nfsd4_init_callback Jeff Layton
2014-07-14 13:13 ` [PATCH 2/2] nfsd: Avoid taking state_lock while holding inode lock in nfsd_break_one_deleg Jeff Layton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1405343622-14385-1-git-send-email-jlayton@primarydata.com \
    --to=jlayton@primarydata.com \
    --cc=bfields@fieldses.org \
    --cc=hch@infradead.org \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox