From: Lars Ellenberg Date: Wed, 9 Jul 2014 19:18:32 +0000 (+0200) Subject: drbd: fix regression 'out of mem, failed to invoke fence-peer helper' X-Git-Tag: cleanup-for-v3.18~208^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbc1c5e8ad6dfebf9d13b8a4ccdf66c92913eac9;p=pandora-kernel.git drbd: fix regression 'out of mem, failed to invoke fence-peer helper' Since linux kernel 3.13, kthread_run() internally uses wait_for_completion_killable(). We sometimes may use kthread_run() while we still have a signal pending, which we used to kick our threads out of potentially blocking network functions, causing kthread_run() to mistake that as a new fatal signal and fail. Fix: flush_signals() before kthread_run(). Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed