lkml.org 
[lkml]   [2010]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/22] GFS2: Update handling of DLM return codes to match reality
    Date
    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>

    diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c
    index 0e0470e..1c09425 100644
    --- a/fs/gfs2/lock_dlm.c
    +++ b/fs/gfs2/lock_dlm.c
    @@ -42,9 +42,9 @@ static void gdlm_ast(void *arg)
    ret |= LM_OUT_CANCELED;
    goto out;
    case -EAGAIN: /* Try lock fails */
    + case -EDEADLK: /* Deadlock detected */
    goto out;
    - case -EINVAL: /* Invalid */
    - case -ENOMEM: /* Out of memory */
    + case -ETIMEDOUT: /* Canceled due to timeout */
    ret |= LM_OUT_ERROR;
    goto out;
    case 0: /* Success */
    --
    1.7.1.1


    \
     
     \ /
      Last update: 2010-10-18 16:45    [W:0.036 / U:2.624 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site