Lines Matching defs:mounted_lock
424 * 1. The mounted_lock tells a node it's the first to mount the fs.
425 * Each node holds the mounted_lock in PR while it's mounted.
426 * Each node tries to acquire the mounted_lock in EX when it mounts.
427 * If a node is granted the mounted_lock EX it means there are no
429 * The mounted_lock is demoted to PR when first recovery is done, so
442 * mounted_lock EX/NOQUEUE success (no other PR, so no other mounters)
445 * mounted_lock EX->PR
450 * mounted_lock EX/NOQUEUE fail -EAGAIN (expected due to other mounters PR)
451 * mounted_lock PR/NOQUEUE success
565 return sync_unlock(sdp, &ls->ls_mounted_lksb, "mounted_lock");
568 static int mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags)
572 &ls->ls_mounted_lksb, "mounted_lock");
817 error = mounted_lock(sdp, DLM_LOCK_NL, 0);
819 fs_err(sdp, "control_mount mounted_lock NL error %d\n", error);
837 error = mounted_lock(sdp, DLM_LOCK_NL, DLM_LKF_CONVERT);
852 * Acquire control_lock in EX and mounted_lock in either EX or PR.
854 * mounted_lock indicates if any other nodes have the fs mounted.
872 error = mounted_lock(sdp, DLM_LOCK_EX, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE);
877 fs_err(sdp, "control_mount mounted_lock EX error %d\n", error);
881 error = mounted_lock(sdp, DLM_LOCK_PR, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE);
887 fs_err(sdp, "control_mount mounted_lock PR error %d\n", error);
1040 error = mounted_lock(sdp, DLM_LOCK_PR, DLM_LKF_CONVERT);
1380 /* mounted_lock and control_lock will be purged in dlm recovery */