/* keep a count of the number of lkb's we send to the new master; when we get an equal number of replies then recovery for the rsb is done  */
static int recover_locks_queue(struct dlm_rsb *r, struct list_head *head)
/* keep a count of the number of lkb's we send to the new master; when we get an equal number of replies then recovery for the rsb is done  */
static int recover_locks_queue(struct dlm_rsb *r, struct list_head *head)
{
	struct dlm_lkb *lkb;
	int error = 0;
	list_for_each_entry(lkb, head, lkb_statequeue) {
	   	error = dlm_send_rcom_lock(r, lkb);
		if (error)
			break;
		r->res_recover_locks_count++;
	}
	return error;
}