Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3535339pxb; Mon, 24 Jan 2022 11:38:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaHUk2lS1IJe6ePFmUeqd/HoLnuB7qSg52v9lHIpRwhjTYHRC8o1O7BXDZ72G6PSdF42rG X-Received: by 2002:a05:6a00:1392:b0:4c8:fc4a:685e with SMTP id t18-20020a056a00139200b004c8fc4a685emr6720276pfg.72.1643053110685; Mon, 24 Jan 2022 11:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643053110; cv=none; d=google.com; s=arc-20160816; b=jdqvz79UAG+5+6tKVyiRqn3xV99PjECxYX/W0kSM6JWCIY1Rc0bIjvp/dhTjcZuifq QXwF3qo+HuA18frwyA/A8h9NOWnWD/mX5iG3y0fdIZC34VfqxUrPxZMEPaUBz3SGJ+1o dP/bFGC7UREYV9n1LvP2+bvXep26d4mVUEWgWqpuuE2wu8Bd7wNPkNdsEj+2gIIXlrti yMA2R7enHxZ5AqTwXkYGBCgbGXtX7+1ADugYrHbkKo1Xz7CRAXyWpvVdrBRkM6la1Qmg ki0zupyUK4ANME2BgAPL6oaZ5xjzX85Aq3IaiKKlJANnl9eWLoHa4g8WuPwYP904yMfl 0SWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=79KUbqnFovl8PcuSxk5IjbyVvI/kpEfdZ145RDlSlls=; b=cVg7786Sc/T6ZTj2OiHYEAqd7/gZocfrngrP/DmbQFeav20T8twNfUF4bLohi2t+Be KM7YupoqHMUmgmiduOauL7z2o69VeheGi9zvguKM2WtkXvRjpFJdUuznju2VwBi4sLZT lh0/PYLqseCr6jAluupkoTbZ0GNPJ6niW+uDxjK8pUu3twfBcGasnkzuXt5ZqnDWAfLs xOEiDVHPjgaNX0rs7L48/xEsmGLqB45L+xKWD1q5g7rF1f05EmkiqsQ27id/1SB8QKur odG+eGlZpc40H8cmQaEp92at6p8q5Ez0Le9vK0iEFAgxv1Rg3XpJS7dHyysjZG2py3Wf ERwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=XOmRM7d4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si9911004pgi.755.2022.01.24.11.38.18; Mon, 24 Jan 2022 11:38:30 -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=@google.com header.s=20210112 header.b=XOmRM7d4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243760AbiAXRGo (ORCPT + 99 others); Mon, 24 Jan 2022 12:06:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235665AbiAXRGn (ORCPT ); Mon, 24 Jan 2022 12:06:43 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE7E3C061747 for ; Mon, 24 Jan 2022 09:06:42 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id e8so13055500wrc.0 for ; Mon, 24 Jan 2022 09:06:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=79KUbqnFovl8PcuSxk5IjbyVvI/kpEfdZ145RDlSlls=; b=XOmRM7d4TxVHfidejk880wpDt1/UvvgXdK/3jt//AlEZ8kOXfrXW1uVSNTFFKjxZCA C2v+s0laubCp0T/F2M1KhNHDAYPIa4oBnG55wyVmMV91QFcO2Kvf9PF4yR/yN9sKvHrG 1DP/JkOPxMskk+4yyoIwqt7wFijpIo+tc7w+jntiuan7oPn9tBYhUJaRq+NjoWluubQM 7lrKcfZM7tScpOEw8pkj+ZftvDartnYHOihAu07vUTaPJqq8leoOfx+HR+5k7eyLmH7x os2+jbWBzU2oQlY3BJbC39rZcVWETEx88WL4wmsT+aCA8Gqw7i6vJJiBleewO9+3zyEf sv0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=79KUbqnFovl8PcuSxk5IjbyVvI/kpEfdZ145RDlSlls=; b=2nmbC95gP44E+cZOZWB06BY/IR3Qhae+xfNdcYHZ2Qh7Tc8cg5DM+Hdr+IwNGpkHr8 8rkhc30a+dmUaIDqNiI8cwROlZoXGniEzqJEml40KPxu7hd4J5ShNfIrQ+NHbV6Dqlqe TfBecU598lrHju3RT5Uzn8lzNO0nlWsXj24heJl56nIj3bgsQkfJSOKXcTjzrSi9luhi 1QRwK6LQ9YqfTz3aGn2/yR+THA07/TIROlPI03m8o0DrMkvBwGYS+bp/Gnzk0UxtCJLb kRXKfmWhVvgEDva42v4QOlY95eCQP5ZnKTf1chIjzPL02qOP5HJiyR/rd46EspPumQmk 6pcQ== X-Gm-Message-State: AOAM532amyRvkXseh9Cjb31DUkfwhYZOo1/Nr1NAQeMRJ5rGqJX0XnfL gZb7h86+/Bu7roUakWcREVwwCBeSnoSXjxaR7A8ZIg== X-Received: by 2002:adf:ec8f:: with SMTP id z15mr14782424wrn.235.1643044001262; Mon, 24 Jan 2022 09:06:41 -0800 (PST) MIME-Version: 1.0 References: <20220120155517.066795336@infradead.org> <20220120160822.914418096@infradead.org> <20220121114758.GF20638@worktop.programming.kicks-ass.net> <20220121151845.GB22849@worktop.programming.kicks-ass.net> In-Reply-To: From: Peter Oskolkov Date: Mon, 24 Jan 2022 09:06:29 -0800 Message-ID: Subject: Re: [RFC][PATCH v2 5/5] sched: User Mode Concurency Groups To: Peter Zijlstra Cc: mingo@redhat.com, tglx@linutronix.de, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, x86@kernel.org, pjt@google.com, avagin@google.com, jannh@google.com, tdelisle@uwaterloo.ca, mark.rutland@arm.com, posk@posk.io Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24, 2022 at 8:44 AM Peter Zijlstra wrote: [...] > > > > Oh how I hate signals... this can get scribbled by a syscall/fault from > > sigcontext :/ > > > > Maybe I can recover the timo argument from the original syscall > > pt_regs.. let me try. I don't think we need to do anything special with timeouts if a signal happens - just normally return -EINTR (after a resume from a server) and let the userspace figure things out. Alternatively, in my version of the patchset UMCG tasks ignore non-fatal signals. :) [...]