Skip to content

Commit

Permalink
NSM: Check result of SM_UNMON upcall
Browse files Browse the repository at this point in the history
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: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
chucklever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 356c3eb commit 0c7aef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ void nsm_unmonitor(const struct nlm_host *host)
dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name);

status = nsm_mon_unmon(nsm, SM_UNMON, &res);
if (res.status != 0)
status = -EIO;
if (status < 0)
printk(KERN_NOTICE "lockd: cannot unmonitor %s\n",
nsm->sm_name);
Expand Down

0 comments on commit 0c7aef4

Please sign in to comment.