diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2010-09-08 05:09:25 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2010-09-20 06:20:12 -0400 |
commit | 1fea7c25a05d388c0cdbe02cbdaf3a2e70885581 (patch) | |
tree | 4cb485254d7d3eb42b2dc0c3de140a21f586d511 /fs/gfs2 | |
parent | 7b5e3d5fcf0d6fce66050bd0313a7dc2ae4abc62 (diff) |
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>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/lock_dlm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c index 0e0470ed34c2..1c09425b45fd 100644 --- a/fs/gfs2/lock_dlm.c +++ b/fs/gfs2/lock_dlm.c | |||
@@ -42,9 +42,9 @@ static void gdlm_ast(void *arg) | |||
42 | ret |= LM_OUT_CANCELED; | 42 | ret |= LM_OUT_CANCELED; |
43 | goto out; | 43 | goto out; |
44 | case -EAGAIN: /* Try lock fails */ | 44 | case -EAGAIN: /* Try lock fails */ |
45 | case -EDEADLK: /* Deadlock detected */ | ||
45 | goto out; | 46 | goto out; |
46 | case -EINVAL: /* Invalid */ | 47 | case -ETIMEDOUT: /* Canceled due to timeout */ |
47 | case -ENOMEM: /* Out of memory */ | ||
48 | ret |= LM_OUT_ERROR; | 48 | ret |= LM_OUT_ERROR; |
49 | goto out; | 49 | goto out; |
50 | case 0: /* Success */ | 50 | case 0: /* Success */ |