Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6616042rdb; Fri, 15 Dec 2023 03:59:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsFn2RGxQsnG9ciRt1W/0UIFUJGSP8Sbvq6gTFi7ZflPC2FjFIwQYZTExOz8wb4qe/GwTJ X-Received: by 2002:ad4:56e4:0:b0:67a:ba4f:9cab with SMTP id cr4-20020ad456e4000000b0067aba4f9cabmr11653375qvb.12.1702641540063; Fri, 15 Dec 2023 03:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702641540; cv=none; d=google.com; s=arc-20160816; b=FCzqYI7wp9dKDCe64YgDn3hRmTOc3yrNXpT/kxCOZn5SdV8dmwu+DFOdYQ5oTxwB1l RcX3PBc0PMQdMq6+s/akGC9b/C3qhsAkawTW317PK4iBz/PbT0tOId/YsbkfrU86CFfy vREs6A4mgYspxPklq4GJC0dRWo+v0Bm+4sggUhXb0t5xCM6/SeRZfo+zJIM1nc2jWMHO +oYNId0PPj9hQtU8MqsBs2CNEu6ZYokeJy4BxmpfU+pcmSy17E5rY7qCl34wSav5x0J+ kYSNLAlcfOlk3paDwUHYMU+fSO691Xp0GzCgJdBtgEbigvDBmPBmse1a2hFbipu01smq RfEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tOSoAzpa9vuWx+zR5R7BQ0XEtmn/eNdVlBchsDDSQ90=; fh=2+K7morKHxRRjcUSOLjRtk0UR4p7CFFVCRNRr9sOM8M=; b=gCHfBdajwEFRAt2HH07sV6T8MjLOw0imn0zTvuVWQAZNcJQemSRC9+pBvprPpi02kR 1egmkXq+/whYe91ilWWYNtgsw0ndhvwXcuctaUxBiEo83G2LEZ0MXnC1S4GIDBSVXGOZ rT4u2SiSNsecJdl9bU4W/R884jbQZvhjkegZPd5QLRm0tWrk88hScBny+3UKeaRPPp5b ab3z7QVkyXUrJXIHUlEMmUxSBhWGhH+0vgdPxClcTof6R5tA2hBet5P7pxmUtyZagQ8C XdP2t9wyd9NDDtpsrPCja3E0ftNlLqTnTKFiuOS8d0aOtojp5pHtWnOSzI7DdFmpo75N EhKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gNdcbqvO; spf=pass (google.com: domain of linux-kernel+bounces-885-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r13-20020a056214124d00b0067ed6dc31a3si12486483qvv.368.2023.12.15.03.58.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 03:59:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-885-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gNdcbqvO; spf=pass (google.com: domain of linux-kernel+bounces-885-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CC7611C233CC for ; Fri, 15 Dec 2023 11:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5587B28E0E; Fri, 15 Dec 2023 11:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gNdcbqvO" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25D15288B6; Fri, 15 Dec 2023 11:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3333b46f26aso409593f8f.1; Fri, 15 Dec 2023 03:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702641526; x=1703246326; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tOSoAzpa9vuWx+zR5R7BQ0XEtmn/eNdVlBchsDDSQ90=; b=gNdcbqvOA3bUNKEFNHsCTwYI6WG1E57YeLE0TwLBZrtHIaP/aG1nqADl0/4106KbyY RuWBN0x7XyRM0QLAKEI74Wn9uEM7/L+ic5zVBhEaUfTcA4arxKz+TR4RpBLfodwbKRtQ aEtdzpkQpa5htzK4hNkLbipxte7axDSZQCTDo5srLtGWAfEjsXles6mgPuu1z9ieEUS5 fdQUZUo13ls68sCHaonskPNACDLJ3VLDyaN2RL1EFm+LUX5CaEqXMGjeItWcL0bzo2kO OpanbFe7ZpkT+dcU4nUYA2gMsVVA+lDCAiXFV6oWri6K832bU+im6h1nkqltoiwZ2Gkw Qpeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702641526; x=1703246326; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tOSoAzpa9vuWx+zR5R7BQ0XEtmn/eNdVlBchsDDSQ90=; b=ud8DX6KFpDDknmJfvIt84iNlSOGJWfS55P1CpiT9+2eGCL0mMtwHa6bbWijdg1X2ZZ 5wtMWaSfZBf+Bql6jCTUT/HKbLJJlkwDOEOecvLW1jN051shZrYe/0Ywcp2U1AnuBOcY VLrzh8s8p4pcZL0NMm81snt7uTQAqwQVSMn9Mof5mlT6WKSIdPJTBHqONjzSLTOKqIxO 5aqN5LPSUm4PUNtSiBwmLadT8ZnGSX3bqX5Uca7zxK6uHxAzh2CDvsD7z0B/M6C3KxD6 KjFf+NMTVPK7YE77YHSk9ayDaB8G3+uzNhJmASc2MX/JvPo6SbjBP6aWDSl7a1CBmw5Z x1QQ== X-Gm-Message-State: AOJu0YyZdF6W0WcpbCzmkr8xCXc1mBicLTWApEEGGyPvAPh4z/PPEFWl rK4jx+b7uJPp8oORWEUkLQ== X-Received: by 2002:a05:6000:147:b0:333:38bb:f8bc with SMTP id r7-20020a056000014700b0033338bbf8bcmr5920121wrx.102.1702641526238; Fri, 15 Dec 2023 03:58:46 -0800 (PST) Received: from [192.168.1.148] (224.69.114.89.rev.vodafone.pt. [89.114.69.224]) by smtp.googlemail.com with ESMTPSA id y8-20020adfee08000000b00336490c7433sm4081992wrn.31.2023.12.15.03.58.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 03:58:45 -0800 (PST) Message-ID: <9095d5cd-5b92-4baa-b7a3-0a84bc1a8a36@gmail.com> Date: Fri, 15 Dec 2023 11:58:44 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] rust: sync: Makes `CondVar::wait()` an uninterruptible wait Content-Language: en-GB To: Boqun Feng , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Benno Lossin , Andreas Hindborg , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Martin Rodriguez Reboredo References: <20231214200421.690629-1-boqun.feng@gmail.com> From: Tiago Lam In-Reply-To: <20231214200421.690629-1-boqun.feng@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/12/2023 20: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()`. > > Spotted-by: Tiago Lam > Signed-off-by: Boqun Feng Thanks, that's clearer. Reviewed-by: Tiago Lam