mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
nfsd: fix BUG at fs/nfsd/nfsfh.h:199 on unlink
As of commit 43a9aa64a2 "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 <[email protected]>
Cc: Chuck Lever <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
cb655d0f3d
commit
b1e86db1de
1 changed files with 0 additions and 2 deletions
|
|
@ -196,8 +196,6 @@ fh_lock(struct svc_fh *fhp)
|
|||
static inline void
|
||||
fh_unlock(struct svc_fh *fhp)
|
||||
{
|
||||
BUG_ON(!fhp->fh_dentry);
|
||||
|
||||
if (fhp->fh_locked) {
|
||||
fill_post_wcc(fhp);
|
||||
mutex_unlock(&fhp->fh_dentry->d_inode->i_mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue