Skip to content

Commit

Permalink
ocfs2/dlm: return zero if deref_done message is successfully handled
Browse files Browse the repository at this point in the history
dlm_deref_lockres_done_handler() should return zero if the message is
successfully handled.

Fixes: 60d663c ("ocfs2/dlm: add DEREF_DONE message").
Signed-off-by: xuejiufei <xuejiufei@huawei.com>
Reviewed-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
xuejiufei authored and Linus Torvalds committed Apr 29, 2016
1 parent a320817 commit b734136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ocfs2/dlm/dlmmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -2455,6 +2455,8 @@ int dlm_deref_lockres_done_handler(struct o2net_msg *msg, u32 len, void *data,

spin_unlock(&dlm->spinlock);

ret = 0;

done:
dlm_put(dlm);
return ret;
Expand Down

0 comments on commit b734136

Please sign in to comment.