]> git.baikalelectronics.ru Git - kernel.git/commit
NSM: Move nsm_find() to fs/lockd/mon.c
authorChuck Lever <chuck.lever@oracle.com>
Sat, 6 Dec 2008 00:02:45 +0000 (19:02 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:53 +0000 (11:53 -0500)
commited77688b055506275a4f51cca2ee2a8d21dec464
tree36e2093df96a449c284640c9cc329fc251e98bd0
parentd1dd32b7dfba1c1852d0c9adacd6fd0d9f872c9b
NSM: Move nsm_find() to fs/lockd/mon.c

The nsm_find() function sets up fresh nsm_handle entries.  This is
where we will store the "priv" cookie used to lookup nsm_handles during
reboot recovery.  The cookie will be constructed when nsm_find()
creates a new nsm_handle.

As much as possible, I would like to keep everything that handles a
"priv" cookie in fs/lockd/mon.c so that all the smarts are in one
source file.  That organization should make it pretty simple to see how
all this works.

To me, it makes more sense than the current arrangement to keep
nsm_find() with nsm_monitor() and nsm_unmonitor().

So, start reorganizing by moving nsm_find() into fs/lockd/mon.c.  The
nsm_release() function comes along too, since it shares the nsm_lock
global variable.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/host.c
fs/lockd/mon.c
include/linux/lockd/lockd.h