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