GFS2: Update handling of DLM return codes to match reality
GFS2's idea of which return codes it needs to handle was based upon those listed in dlm.h. Those didn't cover all the possible codes and listed some which never happen. This updates GFS2 to handle all the codes which can actually be returned from the DLM under various circumstances. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
This commit is contained in:
parent
7b5e3d5fcf
commit
1fea7c25a0
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ static void gdlm_ast(void *arg)
|
||||||
ret |= LM_OUT_CANCELED;
|
ret |= LM_OUT_CANCELED;
|
||||||
goto out;
|
goto out;
|
||||||
case -EAGAIN: /* Try lock fails */
|
case -EAGAIN: /* Try lock fails */
|
||||||
|
case -EDEADLK: /* Deadlock detected */
|
||||||
goto out;
|
goto out;
|
||||||
case -EINVAL: /* Invalid */
|
case -ETIMEDOUT: /* Canceled due to timeout */
|
||||||
case -ENOMEM: /* Out of memory */
|
|
||||||
ret |= LM_OUT_ERROR;
|
ret |= LM_OUT_ERROR;
|
||||||
goto out;
|
goto out;
|
||||||
case 0: /* Success */
|
case 0: /* Success */
|
||||||
|
|
Loading…
Reference in a new issue