* [PATCH 6 of 9] MD: no sync IO while suspended
@ 2011-05-24 3:06 Jonathan Brassow
2011-05-25 4:10 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Brassow @ 2011-05-24 3:06 UTC (permalink / raw)
To: linux-raid
Patch name: md-no-sync-IO-while-suspended.patch
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>
Index: linux-2.6/drivers/md/md.c
===================================================================
--- linux-2.6.orig/drivers/md/md.c
+++ linux-2.6/drivers/md/md.c
@@ -7064,7 +7064,6 @@ void md_do_sync(mddev_t *mddev)
}
EXPORT_SYMBOL_GPL(md_do_sync);
-
static int remove_and_add_spares(mddev_t *mddev)
{
mdk_rdev_t *rdev;
@@ -7176,6 +7175,9 @@ static void reap_sync_thread(mddev_t *md
*/
void md_check_recovery(mddev_t *mddev)
{
+ if (mddev->suspended)
+ return;
+
if (mddev->bitmap)
bitmap_daemon_work(mddev);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 6 of 9] MD: no sync IO while suspended
2011-05-24 3:06 [PATCH 6 of 9] MD: no sync IO while suspended Jonathan Brassow
@ 2011-05-25 4:10 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2011-05-25 4:10 UTC (permalink / raw)
To: Jonathan Brassow; +Cc: linux-raid
On Mon, 23 May 2011 22:06:53 -0500 Jonathan Brassow <jbrassow@f14.redhat.com>
wrote:
> Patch name: md-no-sync-IO-while-suspended.patch
>
> 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>
>
> Index: linux-2.6/drivers/md/md.c
> ===================================================================
> --- linux-2.6.orig/drivers/md/md.c
> +++ linux-2.6/drivers/md/md.c
> @@ -7064,7 +7064,6 @@ void md_do_sync(mddev_t *mddev)
> }
> EXPORT_SYMBOL_GPL(md_do_sync);
>
> -
> static int remove_and_add_spares(mddev_t *mddev)
> {
> mdk_rdev_t *rdev;
> @@ -7176,6 +7175,9 @@ static void reap_sync_thread(mddev_t *md
> */
> void md_check_recovery(mddev_t *mddev)
> {
> + if (mddev->suspended)
> + return;
> +
> if (mddev->bitmap)
> bitmap_daemon_work(mddev);
>
Yep, applied.
Thanks,
NeilBrown
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-25 4:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 3:06 [PATCH 6 of 9] MD: no sync IO while suspended Jonathan Brassow
2011-05-25 4:10 ` NeilBrown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).