]> git.neil.brown.name Git - nfs-utils.git/commit
sm-notify: perform DNS lookup in the background.
authorNeil Brown <neilb@suse.de>
Mon, 21 Jul 2008 01:11:20 +0000 (11:11 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 21 Jul 2008 01:11:20 +0000 (11:11 +1000)
commit25b8aab2899c953ff6156db28af062881d49d0fe
tree271419062abdaa7ebf8a5dbdc5480e643c342824
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.  If hostname lookup fails,
just drop that host.

Signed-off-by: NeilBrown <neilb@suse.de>
utils/statd/sm-notify.c