kernel-ark/fs/lockd
Felix Blyakher a9e61e25f9 lockd: call locks_release_private to cleanup per-filesystem state
For every lock request lockd creates a new file_lock object
in nlmsvc_setgrantargs() by copying the passed in file_lock with
locks_copy_lock(). A filesystem can attach it's own lock_operations
vector to the file_lock. It has to be cleaned up at the end of the
file_lock's life. However, lockd doesn't do it today, yet it
asserts in nlmclnt_release_lockargs() that the per-filesystem
state is clean.
This patch fixes it by exporting locks_release_private() and adding
it to nlmsvc_freegrantargs(), to be symmetrical to creating a
file_lock in nlmsvc_setgrantargs().

Signed-off-by: Felix Blyakher <felixb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2009-04-24 16:36:03 -04:00
..
clntlock.c lockd: Start PF_INET6 listener only if IPv6 support is available 2009-03-28 16:01:16 -04:00
clntproc.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00
grace.c nfsd: common grace period control 2008-10-03 16:19:02 -04:00
host.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00
Makefile nfsd: common grace period control 2008-10-03 16:19:02 -04:00
mon.c NSM: Fix unaligned accesses in nsm_init_private() 2009-04-01 13:24:14 -04:00
svc4proc.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00
svc.c lockd: Start PF_INET6 listener only if IPv6 support is available 2009-03-28 16:01:16 -04:00
svclock.c lockd: call locks_release_private to cleanup per-filesystem state 2009-04-24 16:36:03 -04:00
svcproc.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00
svcshare.c lockd: fix sparse warning in svcshare.c 2008-04-23 16:13:39 -04:00
svcsubs.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00
xdr4.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00
xdr.c NSM: Remove include/linux/lockd/sm_inter.h 2009-01-06 11:53:55 -05:00