]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drbd: fix regression 'out of mem, failed to invoke fence-peer helper'
authorLars Ellenberg <lars.ellenberg@linbit.com>
Wed, 9 Jul 2014 19:18:32 +0000 (21:18 +0200)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Oct 2014 14:09:21 +0000 (16:09 +0200)
commit645ccc08110dd0f49c2d94e58f26d567921d5a5f
treec17e2061fa4e6eed0f576be22a2472f7ca098a06
parente30949769ea506e24072817eddaabeb87c653571
drbd: fix regression 'out of mem, failed to invoke fence-peer helper'

commit bbc1c5e8ad6dfebf9d13b8a4ccdf66c92913eac9 upstream.

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 <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/block/drbd/drbd_nl.c