Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp555367pxb; Thu, 21 Jan 2021 13:48:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCQOnscxhQNOufqtvhOrTdsey38+nV0GY3caKL3/qcIfMsl5Zl6/NeuhZftrWlK1KHeCY0 X-Received: by 2002:aa7:d1c7:: with SMTP id g7mr941132edp.128.1611265734600; Thu, 21 Jan 2021 13:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611265734; cv=none; d=google.com; s=arc-20160816; b=iUw6gBpmwP3nuE3/Sv0tgln0mytTILfwVMiDSGQQp3cHSuBA9lHKa2phCo9Fr2tked ZT8PUyc53GqbxroXxJUVwZyW9DYfy49a2PrnLHNA8cjDFmCMFe4dJXGNpTUtzqaRgIgz DIhe4l1dOWvv5cEFui1IjG7B2VMNWudjsHq6KYtJSu1JObdxGyObnVoJDYKWjmKACSJe CUwlaLqpslYB28UQ64eBKVtI0JPDUymv+DebPxdpQ05klqHf9yQv1yRCOVbXIGuReFJY Tkn/uo5rAbp0Jp6pLJSanGHR1P014cFNNfyGCeG99SNRf6tkCSFgw4mdrpjCmH8Ap6p4 Wp8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pu7q/llojwOYW+kV5ZOmLEa+nT46Y90sYDv+RDyrisM=; b=qhbCxFQ12A+IArLgVF9IMxHM8nap4DxhsqIESFZBpLOF9jFkLHOmm8uPdItUfjW0X7 wnxeW2ZE6WWiPeHGH/4MXZLEidi8Rr23wFpuqx38F64cD4XNZ9FJw5ysl7dUcva12n8r QdH7rABrUI0lbDIiuq4UEQLuPNnbN5Hgl6H49NSFgAoCkE9rNcbBmewcdE8cqz/ZMmOy s4xelOxnALNG6qXLYQk6NGHtvfGU0rADUSPxpMacLpDRgpP9cK/Mc9fy3xh1g4g+DUrh /H71rV6biRyYY7B9GTYDjIkEmL0WMVbahQKKSi13yLUI+JYCyx1E8QRQVPcpCPjDTTle ie3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=liu8wzDX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si2785841edq.48.2021.01.21.13.48.30; Thu, 21 Jan 2021 13:48:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=liu8wzDX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727273AbhAUVqz (ORCPT + 99 others); Thu, 21 Jan 2021 16:46:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:40698 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbhAUVoj (ORCPT ); Thu, 21 Jan 2021 16:44:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A78D923A56; Thu, 21 Jan 2021 21:43:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611265438; bh=tYYWE4pXBYgJiVQbHPNuH4bTBYvHpqbYdDRF8lYnB6s=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=liu8wzDXnkRgcXAWnTvlsopRARgJJt+SEtmo3fLAh+G3Yu/uAUIoOxolzRF0SDio6 HhKt2jHMvaLIYftcpZzPhu4WjRUHtKbkOo6Nes0AyKu0BDofUFhcAG457EfQeWTnpJ WdQM3SeA3vu0j7Xhc8kj3EPxlnUfJCgsyH+6Yy32QZQdHU3/jgEIS4fTP/Po4fyCaH p20bZsHurxWvVHuy3nQqHIxyXglB4Y4Kr9vzX1SMJNnS1XOO4BMqarin7+j9haHIYk IADOWwhbJDgBtXJGkgxEqedve/J40mnThssxewjixo4TU3TbJyHy5GcMXr/3i42Q0z 7JngHprjTc0uQ== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 61D2435226D8; Thu, 21 Jan 2021 13:43:58 -0800 (PST) Date: Thu, 21 Jan 2021 13:43:58 -0800 From: "Paul E. McKenney" To: Stephen Rothwell Cc: Sven Schnelle , Linux Next Mailing List , Linux Kernel Mailing List , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Thomas Gleixner , Frederic Weisbecker Subject: Re: [PATCH] s390: allow reschedule on syscall restart Message-ID: <20210121214358.GX2743@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20210121143926.21440-1-svens@linux.ibm.com> <20210121143926.21440-2-svens@linux.ibm.com> <20210122083249.60d29c33@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210122083249.60d29c33@canb.auug.org.au> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 08:32:49AM +1100, Stephen Rothwell wrote: > Hi all, > > On Thu, 21 Jan 2021 15:39:26 +0100 Sven Schnelle wrote: > > > > Commit 845f44e8ef28 ("sched: Report local wake up on resched blind zone > > within idle loop") from next-20210121 causes a warning because s390 > > doesn't call sched_resched_local_allow() when restarting a syscall. > > > > Signed-off-by: Sven Schnelle > > --- > > arch/s390/kernel/syscall.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/s390/kernel/syscall.c b/arch/s390/kernel/syscall.c > > index bc8e650e377d..2b39ac40f970 100644 > > --- a/arch/s390/kernel/syscall.c > > +++ b/arch/s390/kernel/syscall.c > > @@ -162,6 +162,7 @@ void noinstr __do_syscall(struct pt_regs *regs, int per_trap) > > do_syscall(regs); > > if (!test_pt_regs_flag(regs, PIF_SYSCALL_RESTART)) > > break; > > + sched_resched_local_allow(); > > local_irq_enable(); > > } > > exit_to_user_mode(); > > I add that today as a merge fixup patch to the merge of the rcu tree > (which contains commit 845f44e8ef28 ("sched: Report local wake up on > resched blind zone within idle loop") ). If Frederic has no objections, I will fold this in with attribution. Either way, good catch! Thanx, Paul