diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-19 16:02:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-09-19 16:02:52 -0700 |
commit | 79d57ab98b7bc32e5bb20683814cfb76dbb54a9e (patch) | |
tree | abd4438990d6215cfabd2d780061ee0025f6f1c4 /drivers | |
parent | a19eee5e5e8b11b4a37490f1272d9509dcfcb263 (diff) | |
parent | 9744197c3d7b329590c2be33ad7b17409bd798fe (diff) | |
download | talos-op-linux-79d57ab98b7bc32e5bb20683814cfb76dbb54a9e.tar.gz talos-op-linux-79d57ab98b7bc32e5bb20683814cfb76dbb54a9e.zip |
Merge branch 'for-linus' of git://neil.brown.name/md
* 'for-linus' of git://neil.brown.name/md:
md: Don't wait UNINTERRUPTIBLE for other resync to finish
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 4790c83d78d0..deeac4b44173 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -5761,7 +5761,11 @@ void md_do_sync(mddev_t *mddev) * time 'round when curr_resync == 2 */ continue; - prepare_to_wait(&resync_wait, &wq, TASK_UNINTERRUPTIBLE); + /* We need to wait 'interruptible' so as not to + * contribute to the load average, and not to + * be caught by 'softlockup' + */ + prepare_to_wait(&resync_wait, &wq, TASK_INTERRUPTIBLE); if (!kthread_should_stop() && mddev2->curr_resync >= mddev->curr_resync) { printk(KERN_INFO "md: delaying %s of %s" @@ -5769,6 +5773,8 @@ void md_do_sync(mddev_t *mddev) " share one or more physical units)\n", desc, mdname(mddev), mdname(mddev2)); mddev_put(mddev2); + if (signal_pending(current)) + flush_signals(current); schedule(); finish_wait(&resync_wait, &wq); goto try_again; |