Message ID | 167952533012.5837.8095153662215148655.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2614574wrt; Wed, 22 Mar 2023 16:00:39 -0700 (PDT) X-Google-Smtp-Source: AK7set9p3CYQCF0JxCnqTuTfrsLDb1T5usLvZC2rluabzRSdBj2Aaa+NOwfL/UC/zs5WITNLBGVg X-Received: by 2002:a17:902:c949:b0:19c:e405:4446 with SMTP id i9-20020a170902c94900b0019ce4054446mr5464740pla.30.1679526039423; Wed, 22 Mar 2023 16:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679526039; cv=none; d=google.com; s=arc-20160816; b=JD9NC2pbnth/IAWH4IiScOlohJkO7mZywgNcVV7o3uwShIzsHgvK+Zi8BIIbq7OhWF BBEWFxDn/o/hFAknBQJ1dk5BCXbRMAMiaY9GCqbH5xQZ0F7Oze04hgtw5PcGUOT0AJYl V86RHj76p/upb1iFmFe+oWVs4qBdmv9zqVS3cy14LexqObFUEzVzZHk/p0tXQdpEMMLV bJhCn0MjWvbFqSB1tIIc9Qdv06grLQeIbLRhK2iNaw1De8VF/dgeNdLTaSaGUoubFUaK DheFMjv4rc/q7TXjjXXrJCSppQ2EWWHscT/swAnrs8FDrYWSzXeUresihY2Vos71RMz5 QBNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=opTgGltOQ81osAuycnrX2jYx3YroST+C6v5OaNUDXD0=; b=JUaDwI+R/aSDG956bOM5qWxep0WywYPbJdKxzvAd1lxHgoXkdx3R9d2nskF94dmN04 TyQdPlG61T5T4N8pAJjZSzFp/31wlykQqxLtvT9XVM3wbWf/ucrzvHrH5WwakO+xkqRt 76AXjBarbqkUpHdROEBL9Jqt1OOQUb6iHnVizwT3oBatv9WqcZv/4FzGV272cq0bJZyV pQVPI2YyJ/olI7sy/SDurHkvbCZjbu07QD+6e2piAhzRj2t+BpG9fPkboQLUmkLHIFiy 3X8QLInZz70NzSbl6uAgRwUyBKpVjEwN0Uzxv4/qVXjzy1k88BeQxQXBg8zRgongjyat wPLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hZEWOjG5; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=HwkziF28; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a170902e38c00b0019d038765f6si15780533ple.449.2023.03.22.16.00.25; Wed, 22 Mar 2023 16:00:39 -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=@linutronix.de header.s=2020 header.b=hZEWOjG5; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=HwkziF28; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjCVWsy (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Wed, 22 Mar 2023 18:48:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjCVWsw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Mar 2023 18:48:52 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD9F10D4; Wed, 22 Mar 2023 15:48:52 -0700 (PDT) Date: Wed, 22 Mar 2023 22:48:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679525330; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=opTgGltOQ81osAuycnrX2jYx3YroST+C6v5OaNUDXD0=; b=hZEWOjG5R7lgIaQUwzMTW9ONBcGSB+czQoRbOgxnbL6/xb1M1CFT1A/XTn5wk1mRq+5gjU AAtQxiqJGg/RWuNN1PQDjONfqx+EKULn47XHnBOS04sh+fcud7BQgWQkpFg+voVJGPDMk3 SJH8Kv7AEkD1BmPSNzT0a4Bm0W7+My1R86B+kek6dk9itTWSRUvWbLxjZyjER0jDt1ovX6 G50jUKNGj8nYTkWbztoN2txvcfhwhl0FqxksCGwJdSZFYg2cueTpQHr+gTEreyxLI89cB3 MenSBEkr/ge7xil4K60qaod5v/wsUnD5/7rl21vue2JWA/0P3P96WNwfQ8TunA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679525330; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=opTgGltOQ81osAuycnrX2jYx3YroST+C6v5OaNUDXD0=; b=HwkziF28Rl92ozifWjhJZKRaj58imJyeT5qCUJClRLuBNtn60VjDAiehJJmZ6SfXCoAAe4 qY7WrUg7uPavTNCw== From: "tip-bot2 for Josh Poimboeuf" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] vhost: Fix livepatch timeouts in vhost_worker() Cc: "Seth Forshee (DigitalOcean)" <sforshee@kernel.org>, Josh Poimboeuf <jpoimboe@kernel.org>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, Petr Mladek <pmladek@suse.com>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <509f6ea6fe6505f0a75a66026ba531c765ef922f.1677257135.git.jpoimboe@kernel.org> References: <509f6ea6fe6505f0a75a66026ba531c765ef922f.1677257135.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <167952533012.5837.8095153662215148655.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758732688673003607?= X-GMAIL-MSGID: =?utf-8?q?1761110696408756679?= |
Series |
[tip:,sched/core] vhost: Fix livepatch timeouts in vhost_worker()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
March 22, 2023, 10:48 p.m. UTC
The following commit has been merged into the sched/core branch of tip: Commit-ID: 05bfb338fa8dd40b008ce443e397fc374f6bd107 Gitweb: https://git.kernel.org/tip/05bfb338fa8dd40b008ce443e397fc374f6bd107 Author: Josh Poimboeuf <jpoimboe@kernel.org> AuthorDate: Fri, 24 Feb 2023 08:50:01 -08:00 Committer: Peter Zijlstra <peterz@infradead.org> CommitterDate: Wed, 22 Mar 2023 17:09:29 +01:00 vhost: Fix livepatch timeouts in vhost_worker() Livepatch timeouts were reported due to busy vhost_worker() kthreads. Now that cond_resched() can do livepatch task switching, use cond_resched() in vhost_worker(). That's the better way to conditionally call schedule() anyway. Reported-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Tested-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org> Link: https://lore.kernel.org/r/509f6ea6fe6505f0a75a66026ba531c765ef922f.1677257135.git.jpoimboe@kernel.org --- drivers/vhost/vhost.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index f11bdbe..822fbdb 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -363,8 +363,7 @@ static int vhost_worker(void *data) kcov_remote_start_common(dev->kcov_handle); work->fn(work); kcov_remote_stop(); - if (need_resched()) - schedule(); + cond_resched(); } } kthread_unuse_mm(dev->mm);