SUNRPC: Ensure we initialise the cache_detail before creating procfs files
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 9 Aug 2009 19:14:27 +0000 (15:14 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 9 Aug 2009 19:14:27 +0000 (15:14 -0400)
commit5b7a1b9f9214cb89dd164b43ca3fab7af4058e06
treef39343aeedb1973eddac30ef84ec1bbf73f1fe14
parent2da8ca26c6bfad685bfddf39728eac1c83906aa9
SUNRPC: Ensure we initialise the cache_detail before creating procfs files

Also ensure that we destroy those files before we destroy the cache_detail.
Otherwise, user processes might attempt to write into uninitialised caches.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/cache.c