From 6186fbde07b94324b552365f89390c232912f2bc Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 14 Jan 2011 09:13:53 +1100 Subject: [PATCH] --- yaml --- r: 230644 b: refs/heads/master c: 6c9879101442b08581e8a0e3ae6b7f643a78fd63 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/md/md.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index f2522f47f3a2..4940c6c3d5f6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bf572541ab44240163eaa2d486b06f306a31d45a +refs/heads/master: 6c9879101442b08581e8a0e3ae6b7f643a78fd63 diff --git a/trunk/drivers/md/md.c b/trunk/drivers/md/md.c index 0da25daea9be..a3019121dc57 100644 --- a/trunk/drivers/md/md.c +++ b/trunk/drivers/md/md.c @@ -6042,7 +6042,8 @@ static int md_thread(void * arg) || kthread_should_stop(), thread->timeout); - if (test_and_clear_bit(THREAD_WAKEUP, &thread->flags)) + clear_bit(THREAD_WAKEUP, &thread->flags); + if (!kthread_should_stop()) thread->run(thread->mddev); }