aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index a758f1b80e3b..d5e8ea1b4f75 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -1940,8 +1940,11 @@ static void confirm_master(struct dlm_rsb *r, int error)
1940 break; 1940 break;
1941 1941
1942 case -EAGAIN: 1942 case -EAGAIN:
1943 /* the remote master didn't queue our NOQUEUE request; 1943 case -EBADR:
1944 make a waiting lkb the first_lkid */ 1944 case -ENOTBLK:
1945 /* the remote request failed and won't be retried (it was
1946 a NOQUEUE, or has been canceled/unlocked); make a waiting
1947 lkb the first_lkid */
1945 1948
1946 r->res_first_lkid = 0; 1949 r->res_first_lkid = 0;
1947 1950
@@ -3382,6 +3385,7 @@ static void receive_request_reply(struct dlm_ls *ls, struct dlm_message *ms)
3382 if (is_overlap(lkb)) { 3385 if (is_overlap(lkb)) {
3383 /* we'll ignore error in cancel/unlock reply */ 3386 /* we'll ignore error in cancel/unlock reply */
3384 queue_cast_overlap(r, lkb); 3387 queue_cast_overlap(r, lkb);
3388 confirm_master(r, result);
3385 unhold_lkb(lkb); /* undoes create_lkb() */ 3389 unhold_lkb(lkb); /* undoes create_lkb() */
3386 } else 3390 } else
3387 _request_lock(r, lkb); 3391 _request_lock(r, lkb);