projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9c30dd
)
NFSv4.1: Fix a refcounting issue in the pNFS device id cache
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 14 Jun 2011 16:07:38 +0000
(12:07 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 15 Jun 2011 15:24:29 +0000
(11:24 -0400)
When we add something to the global device id cache, we need to bump the
reference count, so that the cache itself holds a reference.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs_dev.c
patch
|
blob
|
history
diff --git
a/fs/nfs/pnfs_dev.c
b/fs/nfs/pnfs_dev.c
index
5944d4b
..
f0f8e1e
100644
(file)
--- a/
fs/nfs/pnfs_dev.c
+++ b/
fs/nfs/pnfs_dev.c
@@
-209,6
+209,7
@@
nfs4_insert_deviceid_node(struct nfs4_deviceid_node *new)
hlist_add_head_rcu(&new->node, &nfs4_deviceid_cache[hash]);
spin_unlock(&nfs4_deviceid_lock);
+ atomic_inc(&new->ref);
return new;
}