]> git.karo-electronics.de Git - linux-beck.git/commit
NFS: DNS resolver PipeFS notifier introduced
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 25 Nov 2011 14:13:12 +0000 (17:13 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 31 Jan 2012 23:20:26 +0000 (18:20 -0500)
commit9df69c81b469780b64f9b26bb87c048613fdeddf
tree76dc666bf8b8b18c2e3b628159d6a85e5cffa62b
parent1b340d0118da1d7c60c664f17d7c8fce2bb1cd9d
NFS: DNS resolver PipeFS notifier introduced

This patch subscribes DNS resolver caches to RPC pipefs notifications. Notifier
is registering on NFS module load. This notifier callback is responsible for
creation/destruction of PipeFS DNS resolver cache directory.
Note that no locking required in notifier callback because PipeFS superblock
pointer is passed as an argument from it's creation or destruction routine and
thus we can be sure about it's validity.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/cache_lib.c
fs/nfs/cache_lib.h
fs/nfs/dns_resolve.c