mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
DLM: retry rcom when dlm_wait_function is timed out.
If a node sends a DLM_RCOM_STATUS command and an error occurs on the receiving side, the DLM_RCOM_STATUS_REPLY response may not be returned. We retransmitted the DLM_RCOM_STATUS command so that we do not wait for an infinite response. Signed-off-by: Tadashi Miyauchi <miyauchi@toshiba-tops.co.jp> Signed-off-by: Tsutomu Owa <tsutomu.owa@toshiba.co.jp> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
c7355827b2
commit
5966121241
2 changed files with 10 additions and 0 deletions
|
@ -52,6 +52,10 @@ int dlm_wait_function(struct dlm_ls *ls, int (*testfn) (struct dlm_ls *ls))
|
|||
dlm_config.ci_recover_timer * HZ);
|
||||
if (rv)
|
||||
break;
|
||||
if (test_bit(LSFL_RCOM_WAIT, &ls->ls_flags)) {
|
||||
log_debug(ls, "dlm_wait_function timed out");
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
}
|
||||
|
||||
if (dlm_recovery_stopped(ls)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue