Skip to content

Commit

Permalink
dlm: save master info after failed no-queue request
Browse files Browse the repository at this point in the history
When a NOQUEUE request fails, the rsb res_master field is unnecessarily
reset to -1, instead of leaving the valid master setting in place.  We
want to save the looked-up master values while the rsb is on the "toss
list" so that another lookup can be avoided if the rsb is soon reused.
The fix is to simply leave res_master value alone.

Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
David Teigland committed Apr 21, 2008
1 parent 170e19a commit 761b9d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/dlm/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1956,8 +1956,7 @@ static void confirm_master(struct dlm_rsb *r, int error)
list_del_init(&lkb->lkb_rsb_lookup);
r->res_first_lkid = lkb->lkb_id;
_request_lock(r, lkb);
} else
r->res_nodeid = -1;
}
break;

default:
Expand Down

0 comments on commit 761b9d3

Please sign in to comment.