]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] nfsd4: don't create on open that fails due to ERR_GRACE
authorJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 19 Jan 2006 01:43:36 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:26 +0000 (19:20 -0800)
commitd0831ac2f203a18078fddf503e2aa6204143074f
tree4eb83eab183f5dd8786aef63768a15fca1155fa6
parente8f9f45a7bf5faf071d7356102000bec439d904b
[PATCH] nfsd4: don't create on open that fails due to ERR_GRACE

In an earlier patch (commit 4a2953e67b0c0bc5bacc6103f5c72c8f02f9efa5) I noted
that a too-early grace-period check was preventing us from bumping the
sequence id on open.  Unfortunately in that patch I stupidly moved the
grace-period check back too far, so now an open for create can succesfully
create the file while still returning ERR_GRACE.

The correct place for that check is after we've set the open_owner and handled
any replays, but before we actually start mucking with the filesystem.

Thanks to Avishay Traeger for reporting the bug.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c