]> git.karo-electronics.de Git - mv-sheeva.git/commit
lockd: Add nlm_destroy_host_locked()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Dec 2010 15:05:33 +0000 (15:05 +0000)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Dec 2010 17:37:26 +0000 (12:37 -0500)
commit723bb5b5052faba57060a2feb564ced22416b5bc
treee70324287a277846d32ddc3a6724251e1fc27724
parenta7952f4056d4d9c63c70534bcfd4f2c11e487000
lockd: Add nlm_destroy_host_locked()

Refactor the tail of nlm_gc_hosts() into nlm_destroy_host() so that
this logic can be used separately from garbage collection.

Rename it _locked() to document that it must be called with the hosts
cache mutex held.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/host.c