From: Chuck Lever Date: Mon, 19 Sep 2011 18:20:25 +0000 (-0400) Subject: sm-notify: Avoid extra rpcbind queries X-Git-Tag: nfs-utils-1-2-5-rc3~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=445082926141a116c9e93f9ccdd81039c5a2841b;hp=445082926141a116c9e93f9ccdd81039c5a2841b;p=nfs-utils.git sm-notify: Avoid extra rpcbind queries The logic in notify_host() watches the host->retries counter to see if progress is not being made. If progress stalls, notify_host() tries another IP address. This means sm-notify will generate a fresh rpcbind query. After an RPC succeeds, be sure to reset host->retries so sm-notify doesn't start walking down the host's addrinfo list when we _are_ making progress. In the common case, if the host responds, we avoid extra rpcbind queries and send all requests for the host to the same IP address. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson ---