Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6145186imu; Mon, 21 Jan 2019 04:04:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ZpvU04DYWT7bDOHZXSzQ55Mp9btkqly6E2KiwotamC3wU4g2q50mLctXNAVAhK9d8bVIn X-Received: by 2002:a62:b511:: with SMTP id y17mr29706505pfe.199.1548072248729; Mon, 21 Jan 2019 04:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548072248; cv=none; d=google.com; s=arc-20160816; b=iW8XHX5URYrxG9WDFt7cMhke6yZXkHM2DkEtaxscqzWWsHxfncxhfv8/aKkBGMRilZ Yppl0XfCwbqUCvyhZDv+Z9lafshGYvmMPdJsVyGeO5h3ScH2x2PlU4AFhbsRA5zY9sEL blPkStzTq8Ml1HwrGvNcgZkUIUz0JliBVRujAbzdCZ3vB+9NowFzJF0BeI7T5lIq8D0i BMkW5fGRaB/hDOIntypo3J/bPKI8Qqv4Q40L9xTN7pN0AZyEOHhEExkFihq9aOrzk5PH jNP++irR7N/lDLOUUnbTWIN+UeFF/htgTVsX/T8VDcBdechQgk89rEqoGaxwIla21SUI ba9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TlP4b6sULaC04K1v5p9qGORgfRNNBXUGfHPvv9KLhYM=; b=C8NaRDKgWun7LtCXMTbOBngo06b/umhcwNu4/bDnmx7OYfAagxZf6fcuc2NDfJtDZ+ HRWOCBVThbQZSol0xn/lAFuGU7IElmBnzOgCYxVghlGe+/a74cy61rSEmkW0mjaIiiub qzq+Wns70quO+wR3PXK0u4smRU3/gEMgURyRLxM5eJJ5UbFjHYZ9OZbnZxXdhwkUNlMS +69VJWo7WMMFkbtAzK3sgvT+BnAWn92bAQE9nLRiqxy3K43H/MeFrcJr5G2xGmyueMqy Xn4FAPnHjfhsVb62JlHszqh73mXLFtGlQhwqVMyTIpur2SV6zqobeoRMMFm3GdKoFcrx S1jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16si12452041pgj.203.2019.01.21.04.03.50; Mon, 21 Jan 2019 04:04:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728249AbfAUMCT (ORCPT + 99 others); Mon, 21 Jan 2019 07:02:19 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:64468 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727971AbfAUMCT (ORCPT ); Mon, 21 Jan 2019 07:02:19 -0500 Received: from 79.184.255.239.ipv4.supernova.orange.pl (79.184.255.239) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.183) id 551810c34f8d6cbe; Mon, 21 Jan 2019 13:02:16 +0100 From: "Rafael J. Wysocki" To: Peter Zijlstra Cc: Joel Fernandes , Hugo Lefeuvre , Greg Kroah-Hartman , Greg Hartman , Alistair Strachan , Arve =?ISO-8859-1?Q?Hj=F8nnev=E5g?= , Todd Kjos , Martijn Coenen , Christian Brauner , Ingo Molnar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/wait: introduce wait_event_freezable_hrtimeout Date: Mon, 21 Jan 2019 13:01:20 +0100 Message-ID: <1854135.8TqAkcxCUf@aspire.rjw.lan> In-Reply-To: <20190118160450.GG14054@worktop.programming.kicks-ass.net> References: <20190117224135.GC8100@hle-laptop.local> <20190118151941.GB187589@google.com> <20190118160450.GG14054@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, January 18, 2019 5:04:50 PM CET Peter Zijlstra wrote: > On Fri, Jan 18, 2019 at 10:19:41AM -0500, Joel Fernandes wrote: > > You should document the variable names in the header comments. > > > > Also, this new API appears to conflict with definition of 'freezable' in > > wait_event_freezable I think, > > > > wait_event_freezable - sleep or freeze until condition is true. > > > > wait_event_freezable_hrtimeout - sleep but make sure freezer is not blocked. > > (your API) > > > > It seems to me these are 2 different definitions of 'freezing' (or I could be > > completely confused). But in the first case it calls try_to_freeze after > > schedule(). In the second case (your new API), it calls freezable_schedule(). > > > > So I am wondering why is there this difference in the 'meaning of freezable'. > > In the very least, any such subtle differences should be documented in the > > header comments IMO. > > Also; someone was recently hating on the whole freezing thing (again, > and rightfully). I just cannot remember who; Rafael you remember? Nope.