summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-20 18:47:05 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 19:28:21 -0500
commit4601df20fb3bf2b87e248abc622b8a7e4c3059fb (patch)
treefc415ca673c8b4ced88941e0a11fb933da793c66 /fs/nfs/nfs4_fs.h
parent82b0a4c3c171b180629696e8d1d5f52516f711e6 (diff)
downloadop-kernel-dev-4601df20fb3bf2b87e248abc622b8a7e4c3059fb.zip
op-kernel-dev-4601df20fb3bf2b87e248abc622b8a7e4c3059fb.tar.gz
NFSv4: Avoid thundering herd issues with nfs_release_seqid
Store a pointer to the rpc_task in struct nfs_seqid so that we can wake up only that request that is able to grab the lock after we've released it. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index c45c21a..b133b50 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -71,6 +71,7 @@ struct nfs_seqid_counter {
struct nfs_seqid {
struct nfs_seqid_counter *sequence;
struct list_head list;
+ struct rpc_task *task;
};
static inline void nfs_confirm_seqid(struct nfs_seqid_counter *seqid, int status)
OpenPOWER on IntegriCloud