]> git.baikalelectronics.ru Git - kernel.git/commit
md: Don't wait UNINTERRUPTIBLE for other resync to finish
authorNeilBrown <neilb@suse.de>
Fri, 19 Sep 2008 01:49:54 +0000 (11:49 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 19 Sep 2008 01:49:54 +0000 (11:49 +1000)
commit8620f50e33436ce547c87f11712e788e1b246b92
treeb82478694d768a54bad23661e31830cc48e95e0f
parent6d7756b0ac1ba66b4e9240075fd76aa287c86394
md: Don't wait UNINTERRUPTIBLE for other resync to finish

When two md arrays share some block device (e.g each uses different
partitions on the one device), a resync of one array will wait for
the resync on the other to finish.

This can be a long time and as it currently waits TASK_UNINTERRUPTIBLE,
the softlockup code notices and complains.

So use TASK_INTERRUPTIBLE instead and make sure to flush signals
before calling schedule.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c