Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26F0EC636D6 for ; Thu, 9 Feb 2023 19:18:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbjBITS1 (ORCPT ); Thu, 9 Feb 2023 14:18:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjBITSY (ORCPT ); Thu, 9 Feb 2023 14:18:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA4DC458A1; Thu, 9 Feb 2023 11:18:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C14A61BA0; Thu, 9 Feb 2023 19:18:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 559B5C433D2; Thu, 9 Feb 2023 19:18:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675970302; bh=2hZ074pprsWhW5GxtNrfkrbBnieK8ztCBAdaCGo+uXE=; h=From:To:Cc:Subject:Date:From; b=tiXrQce6Iv8Y+NP6DJjZMlPWSBV58IibCmYibYUBtV8JdkGFBCbdEejheiVdkZiOA +6XmISbHDCSqbsj4vL3yuIftCQWYhRNhuXsH4ciiy3M8f5X2pB1hXxFDqgIbsy8KrR veEJlvhc1thPUE57e8QvItX5u9M8sJ6ZBoFuEX1kYhZqxN11qUcPVQmp34pk1Oc9Xu /6MI1uhvB23d620xl1no+d1rgpVvI4pG8xbjp0Hp2ixZjAzFwmXUx1fndmdXBn/feH 7+XlJw/m+P/YQOfEQbwqmU/t6YabDERZS2Cp3yxLOn/8EFu3OL8h4bzO1DrGrtMXux HUD0TqN3KrzPg== From: Josh Poimboeuf To: live-patching@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Seth Forshee , Peter Zijlstra , Song Liu , Mark Rutland , Petr Mladek , Joe Lawrence , Miroslav Benes , Jiri Kosina , Ingo Molnar Subject: [PATCH 0/3] livepatch,sched: Add livepatch task switching to cond_resched() Date: Thu, 9 Feb 2023 11:17:46 -0800 Message-Id: X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix patching stalls caused by busy kthreads. Josh Poimboeuf (3): livepatch: Skip task_call_func() for current task livepatch,sched: Add livepatch task switching to cond_resched() vhost: Fix livepatch timeouts in vhost_worker() drivers/vhost/vhost.c | 3 +- include/linux/livepatch.h | 1 + include/linux/livepatch_sched.h | 29 +++++++++++++++ include/linux/sched.h | 20 ++++++++--- kernel/livepatch/transition.c | 60 ++++++++++++++++++++++++++++++- kernel/sched/core.c | 64 ++++++++++++++++++++++++++++----- 6 files changed, 161 insertions(+), 16 deletions(-) create mode 100644 include/linux/livepatch_sched.h -- 2.39.0