Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2376494rwl; Thu, 30 Mar 2023 09:26:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bfNGMpwZBqmsy8UdXBEsrcnAlOya8qCjQJHYIjeNHYd6NtPqKUZJ41NMeIhh9j8/FWqCh1 X-Received: by 2002:a17:906:28e:b0:947:404b:eb2 with SMTP id 14-20020a170906028e00b00947404b0eb2mr3241309ejf.0.1680193571417; Thu, 30 Mar 2023 09:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680193571; cv=none; d=google.com; s=arc-20160816; b=xuTQd1eHOELo3ydkIzf485KwJdUKoBtXmso6S6Iz8WoJWMX8Wa1WCZUNzm5OQdVvzx M5klSFD0DfXK5c8y2hRZQJvc+KIrQDQ6VxeL209uBhDq+4XyplAnfWWldznj9NegX329 hYfZT1qcUA2sGk0mIHKoI5y7OGCPNqZ+45UUnvZ8zvNrSwjTCLPYPeYR1p47Vd4PyDgp 7DGqtuHGhZkeVV3XNiXoaF4CMXlJ+Li9yRmgyaLckz2iLpFOZtR2pHar3vBoHaeAuVGb +qI5b6bSvZ3EXXEmqsSTuA9X/AP9Zco1PBzIar+7+r2mE1/zElJiUvIioTssw4ITqkP6 Hirw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=b+9DVFdYT3Dn3D+NXxYza3T0qXNz8w53/vwp8HX6fMg=; b=okxsW8CVMR1M2KDVn1vquE3xYNqAZwJKs0ALGlt5ekLHA1Q7KPM3szI5Td7L+gZIBR s2Co4NTgoUGUopF0TwRoQwMC2xXtvgRJSd5dft7vjna/Uhxqt9bteAC0PPCbdlXSWcNy GkY8o0IziMvjD2aYqJlKk3h6uw2+ZIy2JO1HLxSmdb+zs9povhFkGJC4j55GvY8nW/0i tJ88p8+OzyyTtdKvuU2+l50IP8enE1XZwqO/GLXZb9DHnQau2unX3yeVdo0MKNbDkW5r qpuxqMJqT9+tarj7SiV03wceiVh2zZq8FN8XRKSb8Yu8BkdQEGMN4aV44SxezhddKqT7 teyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=B7zgWGt2; dkim=neutral (no key) header.i=@suse.cz header.b=dPtqdhjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gy19-20020a170906f25300b0093b854a4922si14427ejb.486.2023.03.30.09.25.44; Thu, 30 Mar 2023 09:26:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=B7zgWGt2; dkim=neutral (no key) header.i=@suse.cz header.b=dPtqdhjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231173AbjC3QLp (ORCPT + 99 others); Thu, 30 Mar 2023 12:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjC3QLn (ORCPT ); Thu, 30 Mar 2023 12:11:43 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80BBE4EDB; Thu, 30 Mar 2023 09:11:14 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9E2422184D; Thu, 30 Mar 2023 16:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1680192672; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b+9DVFdYT3Dn3D+NXxYza3T0qXNz8w53/vwp8HX6fMg=; b=B7zgWGt2zN1mzEhkbs4Ul1m9BgWC5hFUQB5DS8wUzwv76gpHJ2cACiO2YNe6URYw2DBw3N EpwJmnh0uXSwDLbHp27rK6dLISY0yTJL3NIYWYUvLZRZbDStF9IKdOHK7LXYD7sYUJe+3i 1In9k8g5ygOn6gVIEGkJUAcedscPaAM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1680192672; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=b+9DVFdYT3Dn3D+NXxYza3T0qXNz8w53/vwp8HX6fMg=; b=dPtqdhjZ0KYPGNw+a++Z/y4a/G70Pq0Ygyrt2H1H4volxnQdYSg46aepJUl0h66RE/YwL6 rwD+Eqhik1t4bhBg== Received: from pobox.suse.cz (pobox.suse.cz [10.100.2.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 7C6AD2C141; Thu, 30 Mar 2023 16:11:09 +0000 (UTC) Date: Thu, 30 Mar 2023 18:11:09 +0200 (CEST) From: Miroslav Benes To: Josh Poimboeuf cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Seth Forshee , Peter Zijlstra , Song Liu , Mark Rutland , Petr Mladek , Joe Lawrence , Jiri Kosina , Ingo Molnar , Rik van Riel Subject: Re: [PATCH v3 0/3] livepatch,sched: Add livepatch task switching to cond_resched() In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Feb 2023, Josh Poimboeuf wrote: > v3: > - Add barriers (pmladek) > - Update comments > > 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/core.c | 1 + > kernel/livepatch/transition.c | 113 +++++++++++++++++++++++++++----- > kernel/sched/core.c | 64 +++++++++++++++--- > 7 files changed, 200 insertions(+), 31 deletions(-) > create mode 100644 include/linux/livepatch_sched.h Late, so just recording it here... Acked-by: Miroslav Benes Thanks for improving the situation, Josh. M