]> git.decadent.org.uk Git - nfs-utils.git/commit
sm-notify: perform DNS lookup in the background.
authorSteve Dickson <steved@redhat.com>
Fri, 25 Jul 2008 18:15:47 +0000 (14:15 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 25 Jul 2008 18:15:47 +0000 (14:15 -0400)
commitcf8a5cbe7f6e6ae546c3e48710b657e3d940c7fb
tree5c6591eed5b6c60206dd7284c0d271d167f5610d
parentba8dd9533e647b70d6e46beed3dcd8d8036b02af
sm-notify: perform DNS lookup in the background.

If an NFS server has no network connectivity when it reboots,
it will block in sm-notify waiting for DNS lookup for a potentially
large number of hosts.  This is not helpful and just annoys the
sysadmin.

So do the DNS lookup in the backgrounded phase of sm-notify,
before sending off the NOTIFY requests.

Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/statd/sm-notify.c