Lines Matching defs:mounted_lock
416 * 1. The mounted_lock tells a node it's the first to mount the fs.
417 * Each node holds the mounted_lock in PR while it's mounted.
418 * Each node tries to acquire the mounted_lock in EX when it mounts.
419 * If a node is granted the mounted_lock EX it means there are no
421 * The mounted_lock is demoted to PR when first recovery is done, so
434 * mounted_lock EX/NOQUEUE success (no other PR, so no other mounters)
437 * mounted_lock EX->PR
442 * mounted_lock EX/NOQUEUE fail -EAGAIN (expected due to other mounters PR)
443 * mounted_lock PR/NOQUEUE success
557 return sync_unlock(sdp, &ls->ls_mounted_lksb, "mounted_lock");
560 static int mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags)
564 &ls->ls_mounted_lksb, "mounted_lock");
809 error = mounted_lock(sdp, DLM_LOCK_NL, 0);
811 fs_err(sdp, "control_mount mounted_lock NL error %d\n", error);
829 error = mounted_lock(sdp, DLM_LOCK_NL, DLM_LKF_CONVERT);
844 * Acquire control_lock in EX and mounted_lock in either EX or PR.
846 * mounted_lock indicates if any other nodes have the fs mounted.
864 error = mounted_lock(sdp, DLM_LOCK_EX, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE);
869 fs_err(sdp, "control_mount mounted_lock EX error %d\n", error);
873 error = mounted_lock(sdp, DLM_LOCK_PR, DLM_LKF_CONVERT|DLM_LKF_NOQUEUE);
879 fs_err(sdp, "control_mount mounted_lock PR error %d\n", error);
1032 error = mounted_lock(sdp, DLM_LOCK_PR, DLM_LKF_CONVERT);
1372 /* mounted_lock and control_lock will be purged in dlm recovery */