Lines Matching defs:lvb
304 /* don't want to skip dlm_unlock writing the lvb when lock has one */
341 * 10. gfs2_control updates control_lock lvb with new generation and jid bits
345 * 14. gfs2_control updates control_lock lvb jid bits for recovered journals
368 * 10. gfs2_control sets control_lock lvb = new gen + bits for failed jids
370 * 14. gfs2_control clears control_lock lvb bits for recovered jids
377 * All nodes attempt to update the control_lock lvb with the new generation
379 * do so; others will see that it's already done (lvb already contains new
383 * . All nodes attempt to set control_lock lvb gen + bits for the new gen
384 * . One node gets control_lock first and writes the lvb, others see it's done
386 * . One node succeeds for a jid, and that one clears the jid bit in the lvb
387 * . All nodes will eventually see all lvb bits clear and unblock locks
389 * - is there a problem with clearing an lvb bit that should be set
393 * 2. lvb bit set for step 1
397 * 6. lvb bit set for step 5 (will already be set)
398 * 7. lvb bit cleared for step 3
438 * control_lock EX->NL, write lvb generation
444 * read lvb generation
456 * steps above until the lvb generation number is >= its mount generation
457 * number (from initial recover_done) and all lvb bits are clear.
459 * - control_lock lvb format
489 static int all_jid_bits_clear(char *lvb)
491 return !memchr_inv(lvb + JID_BITMAP_OFFSET, 0,
649 * Propagate recover_submit[] and recover_result[] to lvb:
653 * set lvb bit for jids in recover_submit[] if the lvb has not
656 * clear lvb bit for jids in recover_result[] if the result of
682 * Clear lvb bits for jids we've successfully recovered.
688 * the jid and cleared the lvb bit for it.
706 * Failed slots before start_gen are already set in lvb.
716 * Failed slots before start_gen are not yet set in lvb.
727 latest generation to the lvb */
750 * Everyone will see jid bits set in the lvb, run gfs2_recover_set(),
751 * and clear a jid bit in the lvb if the recovery is a success.
753 * be cleared in the lvb, and everyone will clear BLOCK_LOCKS.
768 * No more jid bits set in lvb, all recovery is done, unblock locks
845 * control_lock lvb keeps track of any pending journal recoveries.
886 * If not, then we need to wait for the control_lock lvb to be
921 * lvb generation to be >= the generation from our first recover_done
922 * and all lvb bits to be clear (no pending journal recoveries.)
937 /* wait for mounted nodes to update control_lock lvb to our
945 "mount %u lvb %u flags %lx\n", block_gen,
954 /* wait for mounted nodes to update control_lock lvb to the
957 "lvb %u flags %lx\n", block_gen, start_gen, mount_gen,
966 "lvb %u flags %lx\n", block_gen, start_gen, mount_gen,