mirror of https://gitee.com/openkylin/linux.git
MD: no sync IO while suspended
Disallow resync I/O while the RAID array is suspended. Recovery, resync, and metadata I/O should not be allowed while a device is suspended. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
629acb6aba
commit
68866e425b
|
@ -7045,7 +7045,6 @@ void md_do_sync(mddev_t *mddev)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(md_do_sync);
|
EXPORT_SYMBOL_GPL(md_do_sync);
|
||||||
|
|
||||||
|
|
||||||
static int remove_and_add_spares(mddev_t *mddev)
|
static int remove_and_add_spares(mddev_t *mddev)
|
||||||
{
|
{
|
||||||
mdk_rdev_t *rdev;
|
mdk_rdev_t *rdev;
|
||||||
|
@ -7157,6 +7156,9 @@ static void reap_sync_thread(mddev_t *mddev)
|
||||||
*/
|
*/
|
||||||
void md_check_recovery(mddev_t *mddev)
|
void md_check_recovery(mddev_t *mddev)
|
||||||
{
|
{
|
||||||
|
if (mddev->suspended)
|
||||||
|
return;
|
||||||
|
|
||||||
if (mddev->bitmap)
|
if (mddev->bitmap)
|
||||||
bitmap_daemon_work(mddev);
|
bitmap_daemon_work(mddev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue