Skip to content

Commit e9acf21

Browse files
author
Trond Myklebust
committed
NFS: Fix sparse annotations for nfs_set_open_stateid_locked()
Signed-off-by: Trond Myklebust <[email protected]>
1 parent 302fad7 commit e9acf21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/nfs/nfs4proc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,10 @@ static void nfs_clear_open_stateid(struct nfs4_state *state,
15551555

15561556
static void nfs_set_open_stateid_locked(struct nfs4_state *state,
15571557
const nfs4_stateid *stateid, nfs4_stateid *freeme)
1558+
__must_hold(&state->owner->so_lock)
1559+
__must_hold(&state->seqlock)
1560+
__must_hold(RCU)
1561+
15581562
{
15591563
DEFINE_WAIT(wait);
15601564
int status = 0;

0 commit comments

Comments
 (0)