Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1295785imu; Wed, 16 Jan 2019 16:37:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Is5ulgJ+tYKOqawjnoDdfoKsjzWXdEX3juvymnqPCjq/Tuvam2PBRtrQXw+0fMMlxuJoU X-Received: by 2002:a62:18ce:: with SMTP id 197mr13138534pfy.88.1547685457385; Wed, 16 Jan 2019 16:37:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685457; cv=none; d=google.com; s=arc-20160816; b=piBngOwFspKUhPHDZxMUqEbx6kfTnabqE9JusxdSJEeyILEjFf4rSG6RMmTgLOGTvw c95wPyP2cwtvU/0U/KqCZcpfQ8cmABCukCgFIQ+B1bdtELGHiZ+/vI+YrowhxW76L+Jy E6aT7nLnAxiXKQsvNjPqb/K/QB2i2GGbEO9BI/rojHDDPoA7y1eS8ifqp9VE5ExCFClL ZTU6TuNhb8oz4O0ouCO+TcOvy2+VEVtp++JpSCAEpgrxw8snqnjw29TP8Zg5ynYTZW9t CK4U6pEznhVt4FyJqExHL61bYYQKk/JKllWHXiFv+Tx9ZQGqgqwAaQEsI3oW37WxlQ4W JHJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=FY3cZAXJpHSrbPtHXeS9CsX3oxI8depDInTwpf6ANp0=; b=tORfj76aWVoK/GPBAMIiTmueVyBoAo5PJRF/5DFlX/QSJ5SCk6PPSJAcg4GlmBUXXZ sFxDe9KP+aEGHJhEJpK1bKtRVWdnV+ljJb97wh8jnFldCpI7O3K26hC9f2RSjsSzENM8 RxVLT03wvGQqitPOgrrRpp20JybTFdS5XPLfXt4IPBkwBV5owlPwLCQt3YeZUjGGvHzz bNPwIuDzNcmy7CmhpBOip8LnHDYHqfkcKunK5JdR+P6YEXa+jDS4uAfldJnhw0/SINvU Whj1NJP2pFAs8uS5xqzVx0ivFE66cHkgIs1MnHe0fEpbXuTd/qCLHKLqedTJTTXUeUK1 zk3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u186si7316355pgd.131.2019.01.16.16.37.19; Wed, 16 Jan 2019 16:37:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727820AbfAPVLP (ORCPT + 99 others); Wed, 16 Jan 2019 16:11:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:48982 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726924AbfAPVLO (ORCPT ); Wed, 16 Jan 2019 16:11:14 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 764A5AFFB; Wed, 16 Jan 2019 21:11:13 +0000 (UTC) Date: Wed, 16 Jan 2019 22:11:12 +0100 (CET) From: Jiri Kosina To: Miroslav Benes cc: jpoimboe@redhat.com, jeyu@kernel.org, pmladek@suse.com, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] livepatch: Send a fake signal periodically In-Reply-To: <20190115164507.14676-2-mbenes@suse.cz> Message-ID: References: <20190115164507.14676-1-mbenes@suse.cz> <20190115164507.14676-2-mbenes@suse.cz> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jan 2019, Miroslav Benes wrote: > An administrator may send a fake signal to all remaining blocking tasks > of a running transition by writing to > /sys/kernel/livepatch//signal attribute. Let's do it > automatically after 15 seconds. The timeout is chosen deliberately. It > gives the tasks enough time to transition themselves. > > Theoretically, sending it once should be more than enough. However, > every task must get outside of a patched function to be successfully > transitioned. It could prove not to be simple and resending could be > helpful in that case. > > A new workqueue job could be a cleaner solution to achieve it, but it > could also introduce deadlocks and cause more headaches with > synchronization and cancelling. > > Signed-off-by: Miroslav Benes [ ... snip ... ] > @@ -400,6 +408,7 @@ void klp_try_complete_transition(void) > */ > schedule_delayed_work(&klp_transition_work, > round_jiffies_relative(HZ)); > + > return; > } I somehow didn't like the newly added newline here :) so I've removed it, and applied both patches to for-5.1/fake-signal. Thanks, -- Jiri Kosina SUSE Labs