Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp34399rdb; Wed, 20 Dec 2023 03:12:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcVWTCuAqePiD+B4DQB243iSW54i0gfmiNa/5i50MBUrR0hT4LOJGI7Q23D3m06uQn9bIu X-Received: by 2002:a17:90a:7787:b0:28a:babd:2bf4 with SMTP id v7-20020a17090a778700b0028ababd2bf4mr6542262pjk.40.1703070778042; Wed, 20 Dec 2023 03:12:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703070778; cv=none; d=google.com; s=arc-20160816; b=LiULo/SkosGMW83Iw2QnSSPRd4N6dPmhzn27jS6W6tr52wsBzk+wLqojBDWC3JvLXh bD7PusYIzvaHLarEagDGw2LRSl4tVSoTX31yEr6LdksZyUqqwEEbm8we4DY6L0rhsSQX xCBbJXzn/0zSe2MBQfd6V412aXDrACqd9K8aCNMtK2hhd2TuyE/zHuz/s4RSVkiZUpxd I0K5Fabcmb3EoGVsLWqbbwcWSx/s5ZMLZ0hoGK1dAn73aboyZS50y+m+7jBTzgWugENL Wi4zJwwZ3pQbD0uvyTwfUWn0QnL1kKDXx0IrKLuF+MmdY5W8ysf9S3KyLXVqvXZL9XYP +/mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=UKGOEKAEiJbfDf+g0US9elwS32PxzMQuvGZA26uCeZA=; fh=VPF1Bvgj38FbL+cdTYHPjX5LBH5gtnblopq3eNqFskc=; b=RZHcTredfoebAfwu7SXYukIP+3dPkMMPEikD2W0oxIa03UVYuFM08H5JK+XBhZWX0G zyTvXr0Dt5lDxDz5JpHFIwHw0GeA3zsLqXNgTDmyvb7ReO7wXZMZ6FRvRiV8QPvEPDSH wH3tqk/vS8XT8SihhafSbtZjXc6qskK6iBZdorh9VptrFmse7HyGomlDwVOjx9q7gcK1 uGYdFRjoLts773CZDdqFaxmvACPQBF1pL1sC0Qx8foe+DRSUYGxoixs6Yce0wIJgNqG2 vhb3Gb2E8M1xGugTY/V7NoaXC5J84mUFDsQQQOUh2TlCFsig/U1QOTI6SaTUW3T6XNq8 lG1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=c0ufHgqL; spf=pass (google.com: domain of linux-kernel+bounces-6798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bv1-20020a17090af18100b002869d1b1921si2903919pjb.31.2023.12.20.03.12.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 03:12:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=c0ufHgqL; spf=pass (google.com: domain of linux-kernel+bounces-6798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6D69BB245A8 for ; Wed, 20 Dec 2023 11:12:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1890210F3; Wed, 20 Dec 2023 11:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="c0ufHgqL" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC4B3210EF for ; Wed, 20 Dec 2023 11:12:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1703070724; x=1703329924; bh=UKGOEKAEiJbfDf+g0US9elwS32PxzMQuvGZA26uCeZA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=c0ufHgqLIygEzjmZuUxn8rhv8aX6otFq4Yr2fsqEOqvw4TimXi+2vo+ptC7D+T1Uk tJthwI4+H0X4rKy2qjJtUn4az5+TX4370sVdcfyG3LHr40ZjEPh1lKhyhimFt8JsFM Tqmy/HOceiXeyb/wnXVM0HrsJzoWHy/MC/M2nXf/uaBczBLP8TWcXv8LZWHx6H6KB9 Xf3/x6FEJcwSE72MI4A6xS/jmSqaIQ0DfextKd4+Y5JTFi9L0XGA9Akg7VThSDYmuR a97kqI4U+8E/t6ekb5C5WKxSXb6lgDcXvO3GCsxvTnis/El6xNQWdnHy9C/qrEVQKI 40KCqGu/Wf9Fw== Date: Wed, 20 Dec 2023 11:11:41 +0000 To: Boqun Feng , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org From: Benno Lossin Cc: Tiago Lam , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Andreas Hindborg , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Martin Rodriguez Reboredo Subject: Re: [PATCH] rust: sync: Makes `CondVar::wait()` an uninterruptible wait Message-ID: <97de563e-3936-4a61-9d7f-2f504ef409c8@proton.me> In-Reply-To: <20231214200421.690629-1-boqun.feng@gmail.com> References: <20231214200421.690629-1-boqun.feng@gmail.com> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 12/14/23 21:04, Boqun Feng wrote: > Currently, `CondVar::wait()` is an interruptible wait, and this is > different than `wait_event()` in include/linux/wait.h (which is an > uninterruptible wait). To avoid confusion between different APIs on the > interruptible/uninterruptible, make `CondVar::wait()` an uninterruptible > wait same as `wait_event()`, also rename the old `wait()` to > `CondVar::wait_interruptible()`. >=20 > Spotted-by: Tiago Lam > Signed-off-by: Boqun Feng > --- Reviewed-by: Benno Lossin --=20 Cheers, Benno