Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3308417imu; Fri, 18 Jan 2019 08:12:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Orac2fKcFcnIfD8CFtIZeTx0V66xGT6Tm0U7jaCrikm+zDZ18HnxImRN1BbVPTxe5ax8p X-Received: by 2002:a17:902:4827:: with SMTP id s36mr19230906pld.168.1547827973096; Fri, 18 Jan 2019 08:12:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547827973; cv=none; d=google.com; s=arc-20160816; b=ragTja5jxiNGF1ZWO40i+T18K9V6dzBRQaJ5ZCj7WIaTje8/fS2YJ5zUybOb55AC6K DAbHyokbsOY/ItUiZoH7yj+u5f/gfBivNTAWvgB9d5Xw8uOa8cAkcatl5BZNrZfwFayo b8xgcGSdc3Qjx80DrbxBG1dY00QYBynpuRnWTNrSNlfdLCIC+RRz7RghB5JGAeAZweLp 5kJpMNSgnmp7ahUuUrpvxHc6Cz9L8rNsFyaUMNbshHsxI+F7aIpLCKeKkw4agqUypkfG QMZ4CfyeGf9JPS26td+3RKJq2J9waTEZZONceodvoHkhw/Wdzu0FvJwXU0OnvCJN04Nx vehg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UnOFN8FawOKG4MkqBabtFx+IHOKdBtIu0PGwssjJfvA=; b=h8Cgrbrc75XfSntZZp9Rg6vPqGh9kylspweloM7YyX1Ls3Bi5tifd9ULFVpv2jiWbN bdL4TtVCjxVpJtZ4tAayZ/cc3fycowT6cgZkIfPTkEOGrWP0JS35bCEzvi+pdf+W7ORz vs2Cb9CpsH6U9LXK5ik8pJ93DR1thVVME+w7aFHeuC06qedIx9nnAuiwhbgNrDvKKEqB b45oqGvsiQO0P7zsfm0y47CvGFWA+WHiNdUZY62IRqELczEHAntATQzEpKOR7/fIg5aj obYZ3JQhrEKU3xu47VnXpq1Xc6t7LYArNsQK3roqUPYPsv94UBrYh2tKiGshhwhpLRrV b4xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0Ga56qSx; 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 a8si4561156pgi.359.2019.01.18.08.12.34; Fri, 18 Jan 2019 08:12:53 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=0Ga56qSx; 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 S1728062AbfARQKL (ORCPT + 99 others); Fri, 18 Jan 2019 11:10:11 -0500 Received: from merlin.infradead.org ([205.233.59.134]:33738 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727993AbfARQKF (ORCPT ); Fri, 18 Jan 2019 11:10:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UnOFN8FawOKG4MkqBabtFx+IHOKdBtIu0PGwssjJfvA=; b=0Ga56qSxaXSh/7ZlTQCpMpVRp y9uU/6sC3tze3/qFbn5Fv+iTyxR3WaE0QcGcepL6KKO6KnqGevHNMdpqZxmYuXAuQIzBRmOeeVpv9 OXIlVFbsgI7hu5Q3L3X9Wery0lv4mp3lmkXQR2yFpfpDI99OePNwwy6Kax83pwqmT0LuoAPSSfBkl TBeRBN9JGeluKesXs/6FeDpjWvpSeYKPBd0wzm1lBE04wWC0YX0+lMogI6jCa9YgrBd6rD+0ng1IE UjwfDsl+XjWbQEezFNIArX5TiJxCGH2PAiTbRumJhvNAIztks+2JDhEa7UFiwp2QT2vZXa92whkGn XoiCoY5tw==; Received: from [89.200.44.227] (helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gkWiJ-00043U-Rr; Fri, 18 Jan 2019 16:09:48 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id A0412983835; Fri, 18 Jan 2019 17:04:50 +0100 (CET) Date: Fri, 18 Jan 2019 17:04:50 +0100 From: Peter Zijlstra To: Joel Fernandes Cc: Hugo Lefeuvre , Greg Kroah-Hartman , Greg Hartman , Alistair Strachan , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Christian Brauner , Ingo Molnar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: [PATCH] sched/wait: introduce wait_event_freezable_hrtimeout Message-ID: <20190118160450.GG14054@worktop.programming.kicks-ass.net> References: <20190117224135.GC8100@hle-laptop.local> <20190118151941.GB187589@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190118151941.GB187589@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?