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 07D39C64ED6 for ; Fri, 17 Feb 2023 22:23:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbjBQWXE (ORCPT ); Fri, 17 Feb 2023 17:23:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjBQWXC (ORCPT ); Fri, 17 Feb 2023 17:23:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B47AE066; Fri, 17 Feb 2023 14:23:01 -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 ams.source.kernel.org (Postfix) with ESMTPS id D7E51B82E67; Fri, 17 Feb 2023 22:22:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27D6CC433D2; Fri, 17 Feb 2023 22:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676672578; bh=soqJwxnfjFfPwqvDVA1zHd0RVwQAJ3bvumgTs5D6PTU=; h=From:To:Cc:Subject:Date:From; b=pqbwAvx9gV476BnOxI1ZPxn/BwklItTpv0TYKujlOcv2JAdENw3chZusPHpRRJNga /SKD6eRPD9Re30MqTE6SPZ2ItrZDmS6R72ismMEYaK2ZufzoCkV6wHRVcd9Z5BwqVb 4V+6fAxxmdP3j36QsIvKK0vUV4qTiehDBvpF05wuG7xMb4sa7h5vdvurxVQfypHVAe m1Jb9JTRqj93xtkrStBejWZnOUI83P3j0OX7C08GELxPyzVtZLTJ1s29sKzVHeLF24 4d+aYHXx7ai1LnsoXiM++4buo+oML9vVKr9aGzqNasVJSRe3h41mjD42hyNkXmzYk3 KU/2ZhhglgJhA== 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 , Rik van Riel Subject: [PATCH v2 0/3] livepatch,sched: Add livepatch task switching to cond_resched() Date: Fri, 17 Feb 2023 14:22:53 -0800 Message-Id: X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: - Avoid calling klp_cond_resched_disable() in klp_cancel_transition() - Fix race in klp_reverse_transition() 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 | 84 ++++++++++++++++++++++++++++----- kernel/sched/core.c | 64 +++++++++++++++++++++---- 6 files changed, 174 insertions(+), 27 deletions(-) create mode 100644 include/linux/livepatch_sched.h -- 2.39.1