]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix BUG at fs/nfsd/nfsfh.h:199 on unlink
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 13 Oct 2010 18:46:17 +0000 (14:46 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 13 Oct 2010 19:48:55 +0000 (15:48 -0400)
commitd9c53c6d5b2be1c8b69fb986cd9575a6dfc08086
tree60405feda18e4145fc335c8c85f46d33816bc9e0
parent7329675ae084388731f0daa1ab79f8eff0953ed2
nfsd: fix BUG at fs/nfsd/nfsfh.h:199 on unlink

As of commit bf8b15ea7492fea374deafc095fb8f2b42abad86 "NFSD:
Fill in WCC data for REMOVE, RMDIR, MKNOD, and MKDIR", we sometimes call
fh_unlock on a filehandle that isn't fully initialized.

We should fix up the callers, but as a quick fix it is also sufficient
just to remove this assertion.

Reported-by: Marius Tolzmann <tolzmann@molgen.mpg.de>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsfh.h