projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302fad7
)
NFS: Fix sparse annotations for nfs_set_open_stateid_locked()
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Tue, 22 Jan 2019 19:01:16 +0000
(14:01 -0500)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 20:14:21 +0000
(15:14 -0500)
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index e8e12faa86040a0ffebd977e8a693da52339bbb9..1dbdc85e68855f0fed79187bb76e0e8cefae94df 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-1555,6
+1555,10
@@
static void nfs_clear_open_stateid(struct nfs4_state *state,
static void nfs_set_open_stateid_locked(struct nfs4_state *state,
const nfs4_stateid *stateid, nfs4_stateid *freeme)
+ __must_hold(&state->owner->so_lock)
+ __must_hold(&state->seqlock)
+ __must_hold(RCU)
+
{
DEFINE_WAIT(wait);
int status = 0;