Lines Matching defs:lvb
305 /* don't want to skip dlm_unlock writing the lvb when lock has one */
349 * 10. gfs2_control updates control_lock lvb with new generation and jid bits
353 * 14. gfs2_control updates control_lock lvb jid bits for recovered journals
376 * 10. gfs2_control sets control_lock lvb = new gen + bits for failed jids
378 * 14. gfs2_control clears control_lock lvb bits for recovered jids
385 * All nodes attempt to update the control_lock lvb with the new generation
387 * do so; others will see that it's already done (lvb already contains new
391 * . All nodes attempt to set control_lock lvb gen + bits for the new gen
392 * . One node gets control_lock first and writes the lvb, others see it's done
394 * . One node succeeds for a jid, and that one clears the jid bit in the lvb
395 * . All nodes will eventually see all lvb bits clear and unblock locks
397 * - is there a problem with clearing an lvb bit that should be set
401 * 2. lvb bit set for step 1
405 * 6. lvb bit set for step 5 (will already be set)
406 * 7. lvb bit cleared for step 3
446 * control_lock EX->NL, write lvb generation
452 * read lvb generation
464 * steps above until the lvb generation number is >= its mount generation
465 * number (from initial recover_done) and all lvb bits are clear.
467 * - control_lock lvb format
497 static int all_jid_bits_clear(char *lvb)
499 return !memchr_inv(lvb + JID_BITMAP_OFFSET, 0,
657 * Propagate recover_submit[] and recover_result[] to lvb:
661 * set lvb bit for jids in recover_submit[] if the lvb has not
664 * clear lvb bit for jids in recover_result[] if the result of
690 * Clear lvb bits for jids we've successfully recovered.
696 * the jid and cleared the lvb bit for it.
714 * Failed slots before start_gen are already set in lvb.
724 * Failed slots before start_gen are not yet set in lvb.
735 latest generation to the lvb */
758 * Everyone will see jid bits set in the lvb, run gfs2_recover_set(),
759 * and clear a jid bit in the lvb if the recovery is a success.
761 * be cleared in the lvb, and everyone will clear BLOCK_LOCKS.
776 * No more jid bits set in lvb, all recovery is done, unblock locks
853 * control_lock lvb keeps track of any pending journal recoveries.
894 * If not, then we need to wait for the control_lock lvb to be
929 * lvb generation to be >= the generation from our first recover_done
930 * and all lvb bits to be clear (no pending journal recoveries.)
945 /* wait for mounted nodes to update control_lock lvb to our
953 "mount %u lvb %u flags %lx\n", block_gen,
962 /* wait for mounted nodes to update control_lock lvb to the
965 "lvb %u flags %lx\n", block_gen, start_gen, mount_gen,
974 "lvb %u flags %lx\n", block_gen, start_gen, mount_gen,