Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp400498lqg; Thu, 11 Apr 2024 06:36:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTUHQGRDUxUsMVlCfPIIVUUs9423AN/bVuYZ1T8cZgb3UQRvVAZdkrCTdi6auM/qCqnfaZuN+Ny4+SkTac3Q4e8IWJnkONboKKkVGQ7A== X-Google-Smtp-Source: AGHT+IF6wWX2PB7Zii8RRRfBl95NI2bgnlwrWuRq8KN9cDx0F+MSZaNXUBqqhvEMu+P02hpOALfn X-Received: by 2002:a17:90a:8a0e:b0:29a:e0bc:4a9b with SMTP id w14-20020a17090a8a0e00b0029ae0bc4a9bmr5639559pjn.16.1712842565703; Thu, 11 Apr 2024 06:36:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712842565; cv=pass; d=google.com; s=arc-20160816; b=viR/Mdtk42y6LbJW1hzt+84FTiZ/MHN1z4w+K7JSM93BsasEu/xutsRq6kl1dzRQx6 7nK81bPrPVFB05+nC/IaxH96D6Wx6qMtEkzcCV0VXnY08px8JTzWnJkkIu3ArJR45DEh mhDBqZNswHy3wvkSxg0sVuwXnphF0Dfy7l1F+6Q7XRfIOfsav4aWrS8Vkl35N+gxQoSI JVkVa3GCfw9vp79zzJtfl6B7MsnRFqiRuwgX3xW8H11NYrOZuJSQW/RUJqnOOfManU+B Hpy5kNpp25FvYh1E5DZJUbEh5z5gk8ag9dVRzNRBAoMJb+pAKPHSXc1+L33QcEoxKA3S qkgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dMukyLDzxBh4PuiDcam3RjGbTvX6GA5JMpKmBbaZA3U=; fh=hfOpcs9GzE+PDg572xoHOhrug1V7/b/bKzjpuWZ/dnw=; b=XM0HYJjZ7Cq1j2gBpNl5LYhwW/oPQIawIY9zQjuLm3TpYOC3gNXENLYusvNWQtHsrD 0mzKiB8CYN73FqSQbMWN/WgNJqxkIpLWLFdH/ubIp1Anl5o4hP3Rk5//LMiYf/GvFnXS sqBWYqHFIlvQeUEDypGlgQAVSRy1Z7CLoDFUwNEeO9u0emEmlaGdKibircF3JZu91RwE i1vskhvvKZyLlh7FwVt7FP3tQwDuBuwXdB4kAOH/8wEGwb1gnYsMh8CHthaqc0/jFjs6 ArH6M5TDTRJjzNaeSdn30hvVaOBq3rYQobMYucFkWIlfgaZTBc0aT38FcyKVoP14m5Ff XDCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MAIf9ifI; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-140518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cx12-20020a17090afd8c00b002a672ba481bsi772406pjb.1.2024.04.11.06.36.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 06:36:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MAIf9ifI; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-140518-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140518-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 549632867DC for ; Thu, 11 Apr 2024 13:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE45A14D43D; Thu, 11 Apr 2024 13:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MAIf9ifI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E9F5640C09; Thu, 11 Apr 2024 13:35:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842516; cv=none; b=cuZOZaAGridjDFwJIqCLY97CwF0+6TceO3pkeDYX6+KHJem4DWNPn23Y8E6Xv8svZpCs7XAuRRH4FTB6mEpwnUeQCuc7JPtiswMl77WMAnIogClOwR7Pz3AILKxY2BtJSMf6nCSbBiLRvcLqx0M3Jx4qi7zX4FWBqKi7VMoUy6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712842516; c=relaxed/simple; bh=FpMFblY+SMwzmG0EVkWbFNPm/dttxcnD0twoO0ekIb4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l4NWsSFoRsgRqys2/NgcMs6n9KrDyjZukw/hZlDIA6kVZEGN05Y5NHGZg4P3LKXwn9FPMDWk6SU7FIL1Dbcnw4qz62GjFM6MxnZAJvG+3wRtL62rI4D4TS5Z6x1M3vCQmNtfi8dWIn9zPQN/q4gAExk4o0RpzWztqhqhNXGJNs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MAIf9ifI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29C75C072AA; Thu, 11 Apr 2024 13:35:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712842515; bh=FpMFblY+SMwzmG0EVkWbFNPm/dttxcnD0twoO0ekIb4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MAIf9ifI+Ws74CbIMFZkPh+kXJjJDc1De1FOESzfzr+su5lpJ0mmbG0NQNV+znNK1 7hNqomDtryq8pECnYWWJOC9lrpV4Xt7NTwDHpyFL+pNUtFp4fUECAl2RuEsQkEe9TI HDBgQUKqT4UKEUdHNeOkqYqsiVOwlg5UofcYKyKc= Date: Thu, 11 Apr 2024 15:35:13 +0200 From: Greg Kroah-Hartman To: Elizabeth Figura Cc: Arnd Bergmann , Jonathan Corbet , Shuah Khan , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, wine-devel@winehq.org, =?iso-8859-1?Q?Andr=E9?= Almeida , Wolfram Sang , Arkadiusz Hiler , Peter Zijlstra , Andy Lutomirski , linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Randy Dunlap Subject: Re: [PATCH v3 03/30] ntsync: Introduce NTSYNC_IOC_SEM_POST. Message-ID: <2024041141-renter-boring-9ff2@gregkh> References: <20240329000621.148791-1-zfigura@codeweavers.com> <20240329000621.148791-4-zfigura@codeweavers.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240329000621.148791-4-zfigura@codeweavers.com> On Thu, Mar 28, 2024 at 07:05:54PM -0500, Elizabeth Figura wrote: > This corresponds to the NT syscall NtReleaseSemaphore(). > > This increases the semaphore's internal counter by the given value, and returns > the previous value. If the counter would overflow the defined maximum, the > function instead fails and returns -EOVERFLOW. > > Signed-off-by: Elizabeth Figura > --- > drivers/misc/ntsync.c | 72 +++++++++++++++++++++++++++++++++++-- > include/uapi/linux/ntsync.h | 2 ++ > 2 files changed, 71 insertions(+), 3 deletions(-) As the first 3 patches here looked good to me (see my comments on patch 4), I took them to save you the trouble of constantly refreshing them. thanks, greg k-h