Message ID | m2y3ninhxs.fsf@discipline.rit.edu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 6eccbd1b98cc..7dc914a6356f 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -1436,6 +1436,8 @@ static void nfs_clear_open_stateid_locked(struct nfs4_state *state, nfs_resync_open_stateid_locked(state); goto out; } + if (test_bit(NFS_OPEN_STATE, &state->flags) == 0) + stateid->type = NFS4_INVALID_STATEID_TYPE; if (test_bit(NFS_DELEGATED_STATE, &state->flags) == 0) nfs4_stateid_copy(&state->stateid, stateid); nfs4_stateid_copy(&state->open_stateid, stateid);