[PATCH] knfsd: nfsd: fix misplaced fh_unlock() in nfsd_link()
authorDavid M. Richter <[email protected]>
Fri, 30 Jun 2006 08:56:15 +0000 (01:56 -0700)
committerLinus Torvalds <[email protected]>
Fri, 30 Jun 2006 18:25:40 +0000 (11:25 -0700)
commit270d56e536dcd37cc819a6adb51d918185411048
tree7594eb9368e1977ff68bc8a9c61afa2cc41640c5
parent6e46d8a9ccbcd3273bdb6902ca2b6da62c253e73
[PATCH] knfsd: nfsd: fix misplaced fh_unlock() in nfsd_link()

In the event that lookup_one_len() fails in nfsd_link(), fh_unlock() is
skipped and locks are held overlong.

Patch was tested on 2.6.17-rc2 by causing lookup_one_len() to fail and
verifying that fh_unlock() gets called appropriately.

Signed-off-by: David M. Richter <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Signed-off-by: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/nfsd/vfs.c