Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2848407imu; Thu, 17 Jan 2019 23:58:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN4tLXUM5w5vorCwekoQwmTE5Yc0ONPLarqNRY8g5HwrLSNlify7CXILu+30hb+fto1tKHyz X-Received: by 2002:a63:6ac5:: with SMTP id f188mr16748058pgc.165.1547798290752; Thu, 17 Jan 2019 23:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547798290; cv=none; d=google.com; s=arc-20160816; b=ffotaIrLl3Z+VDOuO9Hir75HA2dkJ40wnOl7zZqwfXYEn6fygUxyNID3D8HYDRE8A/ S7MYXK1bwchB9dL3BStwUYvxUA3XacQb3N1jxOmRSl19xpG6TvWPlbhfvqCCp6ObvnhN TDoP9mHC9CUMMBGF9Nvv2MtlyqVzGhLtJU2/Q33XhaaRSY5ipgH6D8hnvXnkEUsZLjsz 9qrODTmxFgQLOHk4XhofOhQ5XKZCG3zytFtYkjkFxOGSKA8CQZwlY3OCft/q2TMgZp/Y RVeOfTpzuTH3Nub/0Dxi22UWrgXXZbVw7H+r95Wmy2+88JlxDGqroSU801bE3qWghHec gdCA== 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; bh=DrA32xccVn8y3AzBffBIGmBtj9zEC9sOt22YDi2T8fM=; b=FfOvd+H8ppFbqgpL7pXOvv7SudLDLxaQ82H3q7ISm2ItQ2dI5KjLglQGR4Vgg2MVBt iRC6XRliaffNmH8Rl4Bg6/Wvfrq2MPqthjKFngzyczTvoBFwglUZrj9P/7w2NSgTByRe HNxqvCM7UR1pA0gACebMcpkUh5myEb+H8qHwVcq2boqTgMK9lhDzDO/8GwJGtGmgKP0K mxQNvQjfAUpLNUBL2f0dk+XJkcNNQOZUZnpKOkx/jT6KfXPje3hvS+ZPIfxCwLWTDUqO ncn19c2Uym88vElEzD8eaWiTMpq4AUKMEASjl//2H8Yhr9GMPPaHWjQ9aKqoaVIIvirK +JYA== 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 h5si2023070pgc.237.2019.01.17.23.57.55; Thu, 17 Jan 2019 23:58:10 -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 S1727285AbfARH4l (ORCPT + 99 others); Fri, 18 Jan 2019 02:56:41 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:45324 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727167AbfARH4k (ORCPT ); Fri, 18 Jan 2019 02:56:40 -0500 Received: from relay9-d.mail.gandi.net (unknown [217.70.183.199]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 1D2963A677E for ; Fri, 18 Jan 2019 08:48:43 +0100 (CET) X-Originating-IP: 141.70.45.131 Received: from localhost (hadi-gate-vlan-851.hadiko.whka.de [141.70.45.131]) (Authenticated sender: hle@owl.eu.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 1A6C2FF807; Fri, 18 Jan 2019 07:48:38 +0000 (UTC) Date: Fri, 18 Jan 2019 08:48:37 +0100 From: Hugo Lefeuvre To: Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org, Todd Kjos , Peter Zijlstra , Greg Hartman , linux-kernel@vger.kernel.org, Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Ingo Molnar , Joel Fernandes , Martijn Coenen , Alistair Strachan , Christian Brauner Subject: Re: [PATCH] sched/wait: introduce wait_event_freezable_hrtimeout Message-ID: <20190118074837.GA6288@hle-laptop.local> References: <20190117224135.GC8100@hle-laptop.local> <20190118071752.GG11050@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20190118071752.GG11050@kroah.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 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Greg, > > introduce wait_event_freezable_hrtimeout, an interruptible and freezable > > version of wait_event_hrtimeout. > >=20 > > simplify handle_vsoc_cond_wait (drivers/staging/android/vsoc.c) using t= his > > newly added helper and remove useless includes. > >=20 > > Signed-off-by: Hugo Lefeuvre > > --- > > drivers/staging/android/vsoc.c | 69 +++++----------------------------- > > include/linux/wait.h | 25 ++++++++++-- >=20 > code in drivers/staging/ should be self-contained, and not, if at all > possible, ever force additional changes on "core" kernel code. >=20 > Are you sure that the vsoc code can't use one of the current wait > macros? As far as I know there is no macro implementing freezable wait with high resolution timeout. > Why is it so special and unique that no one else in the kernel > has ever needed this before it came along? many wait_event_X() (_exclusive, _interruptible, _timeout) functions have a freezable counterpart. wait_event_hrtimeout() doesn't, probably because it is relatively new (and seemingly quite unused). If there is a wait_event_hrtimeout() function, it makes sense to me to have wait_event_freezable_hrtimeout(). --=20 Hugo Lefeuvre (hle) | www.owl.eu.com RSA4096_ 360B 03B3 BF27 4F4D 7A3F D5E8 14AA 1EB8 A247 3DFD ed25519_ 37B2 6D38 0B25 B8A2 6B9F 3A65 A36F 5357 5F2D DC4C --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEUFZhdgIWqBhwqCvuZYVUZx9w0DQFAlxBhMsACgkQZYVUZx9w 0DQaCwf9FZoalsr7SE0nvxKs/14uvlBjDEcKthGwUW69WZAuX89ky3QAAgiyxidi Xj2cHGyFD5EKpAEsed2SSrlCpH5tmES/GfzX3DR1Y24z9NVTr7ZDZFXke8kvxxJH tPN2pCdKyrsfNscdIURc1MzpdGM6FbvJc6H1IpznnrvQ+eBs95F75QTH+dz1qDlU mL/lpGIgrGShZO/0hsfV1e3bAfb/lnQgzMJi25VlHNJJTIhHG2hO2z7MC9DlNnFp jjgMbF98b5cfXVPvHAbM4OcttK22bKFrKAcyCeyrF+UFt5g+yd0OOiflK92LKS8V 8skLd5Byvz1Oqbm7WFC3zQTeOJerng== =cxkH -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--