Skip to content

Commit 0c7aef4

Browse files
chuckleverJ. Bruce Fields
authored andcommitted
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: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
1 parent 356c3eb commit 0c7aef4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/lockd/mon.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ void nsm_unmonitor(const struct nlm_host *host)
126126
dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name);
127127

128128
status = nsm_mon_unmon(nsm, SM_UNMON, &res);
129+
if (res.status != 0)
130+
status = -EIO;
129131
if (status < 0)
130132
printk(KERN_NOTICE "lockd: cannot unmonitor %s\n",
131133
nsm->sm_name);

0 commit comments

Comments
 (0)