/* Set the lock master for all LKBs in a lock queue If we are the new master of the rsb, we may have received new MSTCPY locks from other nodes already which we need to ignore when setting the new nodeid.  */
static void set_lock_master(struct list_head *queue, int nodeid)
/* Set the lock master for all LKBs in a lock queue If we are the new master of the rsb, we may have received new MSTCPY locks from other nodes already which we need to ignore when setting the new nodeid.  */
static void set_lock_master(struct list_head *queue, int nodeid)
{
	struct dlm_lkb *lkb;
	list_for_each_entry(lkb, queue, lkb_statequeue)
		if (!(lkb->lkb_flags & DLM_IFL_MSTCPY))
			lkb->lkb_nodeid = nodeid;
}