Lines Matching refs:bm_lockres
298 struct dlm_lock_resource *bm_lockres; in recover_bitmaps() local
308 bm_lockres = lockres_init(mddev, str, NULL, 1); in recover_bitmaps()
309 if (!bm_lockres) { in recover_bitmaps()
314 ret = dlm_lock_sync_interruptible(bm_lockres, DLM_LOCK_PW, mddev); in recover_bitmaps()
352 lockres_free(bm_lockres); in recover_bitmaps()
802 struct dlm_lock_resource *bm_lockres; in gather_all_resync_info() local
811 bm_lockres = lockres_init(mddev, str, NULL, 1); in gather_all_resync_info()
812 if (!bm_lockres) in gather_all_resync_info()
815 lockres_free(bm_lockres); in gather_all_resync_info()
819 bm_lockres->flags |= DLM_LKF_NOQUEUE; in gather_all_resync_info()
820 ret = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); in gather_all_resync_info()
822 s = read_resync_info(mddev, bm_lockres); in gather_all_resync_info()
834 lockres_free(bm_lockres); in gather_all_resync_info()
838 lockres_free(bm_lockres); in gather_all_resync_info()
846 lockres_free(bm_lockres); in gather_all_resync_info()
855 lockres_free(bm_lockres); in gather_all_resync_info()
1117 struct dlm_lock_resource *bm_lockres; in cluster_check_sync_size() local
1138 bm_lockres = lockres_init(mddev, str, NULL, 1); in cluster_check_sync_size()
1139 if (!bm_lockres) { in cluster_check_sync_size()
1144 bm_lockres->flags |= DLM_LKF_NOQUEUE; in cluster_check_sync_size()
1145 rv = dlm_lock_sync(bm_lockres, DLM_LOCK_PW); in cluster_check_sync_size()
1148 lockres_free(bm_lockres); in cluster_check_sync_size()