summaryrefslogtreecommitdiffstats
path: root/drivers/block/md.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-12-16 05:34:03 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-12-16 05:34:03 +0000
commit967c65a99059fd459b956c1588ce0ba227912c4e (patch)
tree8224d013ff5d255420713d05610c7efebd204d2a /drivers/block/md.c
parente20c1cc1656a66a2773bca4591a895cbc12696ff (diff)
Merge with Linux 2.1.72, part 1.
Diffstat (limited to 'drivers/block/md.c')
-rw-r--r--drivers/block/md.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/block/md.c b/drivers/block/md.c
index 2018883ca..039e7919c 100644
--- a/drivers/block/md.c
+++ b/drivers/block/md.c
@@ -987,9 +987,11 @@ int md_thread(void * arg)
cli();
if (!test_bit(THREAD_WAKEUP, &thread->flags)) {
do {
- current->signal = 0;
- interruptible_sleep_on(&thread->wqueue);
- } while (current->signal);
+ spin_lock_irq(&current->sigmask_lock);
+ flush_signals(current);
+ spin_unlock_irq(&current->sigmask_lock);
+ interruptible_sleep_on(&thread->wqueue);
+ } while (signal_pending(current));
}
}
}