Lines Matching defs:active

659 	atomic_inc(&mddev->active);
667 if (!atomic_dec_and_lock(&mddev->active, &all_mddevs_lock))
671 /* Array is not configured at all, and not held active,
697 atomic_set(&mddev->active, 1);
1420 /* active but not in sync implies recovery up to
1457 int active=0, working=0,failed=0,spare=0,nr_disks=0;
1548 active++;
1572 sb->active_disks = active;
2364 * from the array. It only succeeds if all working and active component devices
2693 /* Check if a device has become faulty or a spare become active */
3022 * insync - sets Insync providing device isn't active
3238 /* Setting 'slot' on an active array requires also
4379 * May have some settings, but array is not active
4391 * clean - no pending writes, but otherwise active.
4394 * if metadata is known, mark 'dirty' and switch to 'active'.
4396 * If written to an active array that has pending writes, then fails.
4397 * active
4398 * fully active: IO and resync can be happening.
4402 * clean, but writes are blocked waiting for 'active' to be written.
4404 * active-idle
4405 * like active, but no writes have been seen for a while (100msec).
4413 enum array_state { clear, inactive, suspended, readonly, read_auto, clean, active,
4416 "clear", "inactive", "suspended", "readonly", "read-auto", "clean", "active",
4417 "write-pending", "active-idle", "broken", NULL };
4450 st = active;
4477 if (mddev->pers && (st == active || st == clean) && mddev->ro != 1) {
4479 * clean and active
4482 if (st == active) {
4505 /* stopping an active array */
4509 /* stopping an active array */
4553 case active:
4743 * If array is active, we can try an on-line resize
5821 * set the name to val. val must not already be an active name.
7008 pr_debug("md: cannot remove active disk %s from %s ...\n",
8552 * If we need to update some array metadata (e.g. 'active' flag
8642 * Calling this ensures that the array is marked 'active' so that writes
8740 * other == active in resync - this many blocks
9235 * 3/ If recovery has finished, clean up, possibly marking spares active.
9656 /* Check for change of roles in the active devices */