Commit 0c7aef45 authored by Chuck Lever's avatar Chuck Lever Committed by J. Bruce Fields

NSM: Check result of SM_UNMON upcall

Make sure any error returned by rpc.statd during an SM_UNMON call is
reported rather than ignored completely.  There isn't much to do with
such an error, but we should log it in any case.

Similar to a recent change to nsm_monitor().
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 356c3eb4
...@@ -126,6 +126,8 @@ void nsm_unmonitor(const struct nlm_host *host) ...@@ -126,6 +126,8 @@ void nsm_unmonitor(const struct nlm_host *host)
dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name); dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name);
status = nsm_mon_unmon(nsm, SM_UNMON, &res); status = nsm_mon_unmon(nsm, SM_UNMON, &res);
if (res.status != 0)
status = -EIO;
if (status < 0) if (status < 0)
printk(KERN_NOTICE "lockd: cannot unmonitor %s\n", printk(KERN_NOTICE "lockd: cannot unmonitor %s\n",
nsm->sm_name); nsm->sm_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment