Lines Matching refs:bm_lockres
226 struct dlm_lock_resource *bm_lockres; in recover_bitmaps() local
245 bm_lockres = lockres_init(mddev, str, NULL, 1); in recover_bitmaps()
246 if (!bm_lockres) { in recover_bitmaps()
251 ret = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); in recover_bitmaps()
270 dlm_unlock_sync(bm_lockres); in recover_bitmaps()
582 struct dlm_lock_resource *bm_lockres; in gather_all_resync_info() local
590 bm_lockres = lockres_init(mddev, str, NULL, 1); in gather_all_resync_info()
591 if (!bm_lockres) in gather_all_resync_info()
596 bm_lockres->flags |= DLM_LKF_NOQUEUE; in gather_all_resync_info()
597 ret = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); in gather_all_resync_info()
599 memset(bm_lockres->lksb.sb_lvbptr, '\0', LVB_SIZE); in gather_all_resync_info()
600 s = read_resync_info(mddev, bm_lockres); in gather_all_resync_info()
612 lockres_free(bm_lockres); in gather_all_resync_info()
618 dlm_unlock_sync(bm_lockres); in gather_all_resync_info()
619 lockres_free(bm_lockres); in gather_all_resync_info()