]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] nfsd: fix spurious error return from nfsd_create in async case
authorJ. Bruce Fields <bfields@fieldses.org>
Thu, 9 Nov 2006 01:44:59 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 9 Nov 2006 02:29:25 +0000 (18:29 -0800)
commit1a9e43ab7c08427bf3700276a1c87b1dcdae1b56
treed41aeb42daff2e25cc4c4071d890128bf4ce95f5
parent4bcfec233a6b753ac85b6e5cab580aef2fdd91ed
[PATCH] nfsd: fix spurious error return from nfsd_create in async case

Commit b6aa4415c1f1609dbcf63544f87c0a22a49bafec modified the nfsd_create()
error handling in such a way that nfsd_create will usually return
nfserr_perm even when succesful, if the export has the async export option.

This introduced a regression that could cause mkdir() to always return a
permissions error, even though the directory in question was actually
succesfully created.

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