Skip to content

Commit 418c854

Browse files
author
Andreas Gruenbacher
committed
gfs2: Partially revert "gfs2: do_xmote fixes"
When the lm_lock hook which calls dlm_lock() returns an error, do_xmote() previously reported the error to the syslog ("lm_lock ret %d\n") but otherwise ignored it during withdraws. Commit 9947a06 ("gfs2: do_xmote fixes") changed that to pass the error on to the glock layer, but the error would then only result in an unconditional BUG() in finish_xmote(), which doesn't help. Instead, revert to the previous behavior. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Andrew Price <anprice@redhat.com>
1 parent 4250e68 commit 418c854

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/gfs2/glock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,8 @@ __acquires(&gl->gl_lockref.lock)
832832
*/
833833
} else {
834834
fs_err(sdp, "lm_lock ret %d\n", ret);
835-
target = gl->gl_state | LM_OUT_ERROR;
835+
GLOCK_BUG_ON(gl, !gfs2_withdrawing_or_withdrawn(sdp));
836+
return;
836837
}
837838
}
838839

0 commit comments

Comments
 (0)