Skip to content

Commit

Permalink
NFS: Fix sparse annotations for nfs_set_open_stateid_locked()
Browse files Browse the repository at this point in the history
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
  • Loading branch information
Trond Myklebust committed Feb 20, 2019
1 parent 302fad7 commit e9acf21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9acf21

Please sign in to comment.