diff options
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 31ce758d53d5..f1f087b483ce 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -1808,6 +1808,8 @@ int nfs4_do_close(struct path *path, struct nfs4_state *state, int wait) | |||
1808 | calldata->state = state; | 1808 | calldata->state = state; |
1809 | calldata->arg.fh = NFS_FH(state->inode); | 1809 | calldata->arg.fh = NFS_FH(state->inode); |
1810 | calldata->arg.stateid = &state->open_stateid; | 1810 | calldata->arg.stateid = &state->open_stateid; |
1811 | if (nfs4_has_session(server->nfs_client)) | ||
1812 | memset(calldata->arg.stateid->data, 0, 4); /* clear seqid */ | ||
1811 | /* Serialization for the sequence id */ | 1813 | /* Serialization for the sequence id */ |
1812 | calldata->arg.seqid = nfs_alloc_seqid(&state->owner->so_seqid); | 1814 | calldata->arg.seqid = nfs_alloc_seqid(&state->owner->so_seqid); |
1813 | if (calldata->arg.seqid == NULL) | 1815 | if (calldata->arg.seqid == NULL) |