Lines Matching defs:active
627 atomic_inc(&mddev->active);
635 if (!atomic_dec_and_lock(&mddev->active, &all_mddevs_lock))
639 /* Array is not configured at all, and not held active,
666 atomic_set(&mddev->active, 1);
1379 /* active but not in sync implies recovery up to
1416 int active=0, working=0,failed=0,spare=0,nr_disks=0;
1507 active++;
1531 sb->active_disks = active;
2319 * from the array. It only succeeds if all working and active component devices
2619 /* Check if a device has become faulty or a spare become active */
2946 * insync - sets Insync providing device isn't active
3163 /* Setting 'slot' on an active array requires also
4323 * May have some settings, but array is not active
4335 * clean - no pending writes, but otherwise active.
4338 * if metadata is known, mark 'dirty' and switch to 'active'.
4340 * If written to an active array that has pending writes, then fails.
4341 * active
4342 * fully active: IO and resync can be happening.
4346 * clean, but writes are blocked waiting for 'active' to be written.
4348 * active-idle
4349 * like active, but no writes have been seen for a while (100msec).
4356 enum array_state { clear, inactive, suspended, readonly, read_auto, clean, active,
4359 "clear", "inactive", "suspended", "readonly", "read-auto", "clean", "active",
4360 "write-pending", "active-idle", "broken", NULL };
4393 st = active;
4420 if (mddev->pers && (st == active || st == clean) &&
4423 * clean and active
4426 if (st == active) {
4449 /* stopping an active array */
4453 /* stopping an active array */
4497 case active:
4672 * If array is active, we can try an on-line resize
5799 * set the name to val. val must not already be an active name.
7023 pr_debug("md: cannot remove active disk %pg from %s ...\n",
8148 * yielded one of the special values. Force it to active to
8149 * ensure the status reports an active resync.
8614 * If we need to update some array metadata (e.g. 'active' flag
8766 * Calling this ensures that the array is marked 'active' so that writes
9358 * 3/ If recovery has finished, clean up, possibly marking spares active.
9794 /* Check for change of roles in the active devices */