From: NeilBrown Date: Mon, 29 Sep 2014 22:10:42 +0000 (+1000) Subject: md: don't start resync thread directly from md thread. X-Git-Tag: omap-for-v3.19/prcm-cleanup~52^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac05f256691fe427a3e84c19261adb0b67dd73c0;p=pandora-kernel.git md: don't start resync thread directly from md thread. The main 'md' thread is needed for processing writes, so if it blocks write requests could be delayed. Starting a new thread requires some GFP_KERNEL allocations and so can wait for writes to complete. This can deadlock. So instead, ask a workqueue to start the sync thread. There is no particular rush for this to happen, so any work queue will do. MD_RECOVERY_RUNNING is used to ensure only one thread is started. Reported-by: BillStuff Signed-off-by: NeilBrown --- Reading git-diff-tree failed