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)
commit9744197c3d7b329590c2be33ad7b17409bd798fe
treeb82478694d768a54bad23661e31830cc48e95e0f
parent45e9c0de2e86485f8b6633fd64ab19cfbff167f6
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