Lines Matching refs:safemode
3134 mddev->safemode = 0; in level_store()
3409 else if (mddev->safemode) in array_state_show()
3486 if (mddev->safemode == 1) in array_state_store()
3487 mddev->safemode = 0; in array_state_store()
4412 mddev->safemode = 1; in md_safemode_timeout()
4597 mddev->safemode = 0; in md_run()
4659 mddev->safemode = 0; in restart_array()
4733 mddev->safemode = 0; in md_clean()
6635 if (mddev->safemode == 1) in md_write_start()
6636 mddev->safemode = 0; in md_write_start()
6657 if (mddev->safemode == 2) in md_write_end()
6688 mddev->safemode == 0) in md_allow_write()
6689 mddev->safemode = 1; in md_allow_write()
7155 mddev->safemode = 2; in md_check_recovery()
7166 (mddev->external == 0 && mddev->safemode == 1) || in md_check_recovery()
7167 (mddev->safemode == 2 && ! atomic_read(&mddev->writes_pending) in md_check_recovery()
7200 if (mddev->safemode && in md_check_recovery()
7208 if (mddev->safemode == 1) in md_check_recovery()
7209 mddev->safemode = 0; in md_check_recovery()