diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 0da25daea9be..a3019121dc57 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6042,7 +6042,8 @@ static int md_thread(void * arg) | |||
6042 | || kthread_should_stop(), | 6042 | || kthread_should_stop(), |
6043 | thread->timeout); | 6043 | thread->timeout); |
6044 | 6044 | ||
6045 | if (test_and_clear_bit(THREAD_WAKEUP, &thread->flags)) | 6045 | clear_bit(THREAD_WAKEUP, &thread->flags); |
6046 | if (!kthread_should_stop()) | ||
6046 | thread->run(thread->mddev); | 6047 | thread->run(thread->mddev); |
6047 | } | 6048 | } |
6048 | 6049 | ||