Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1025416ybx; Wed, 30 Oct 2019 08:44:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyimgdQ/MQeX2j70BebFpCKuULwr8jM8U2n2ol+SwvmvMosUe/VVtkDP95vJQLA80i8TZ7v X-Received: by 2002:a50:b966:: with SMTP id m93mr334251ede.228.1572450256712; Wed, 30 Oct 2019 08:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572450256; cv=none; d=google.com; s=arc-20160816; b=iKGTwKrnQx8UXX4T6NCxm2v0cEt2jOYrEnBPv7f6Q19YERq0RY7zhEEKaOxkjiOv6v 6Cccw64KASlUOsLGxKlhnEdetXFkHuFRG+veQ4Ump9airCad6DSKrUoIv8H4NEf7xo41 J3Z1BgD4s/2drdCYG2xYw3GlokMRGUC2ONvY5QIuPViJXnaIE6wKw44WNkz0Rm+ZhAAu rfizwUIYwjOL3D//6zR1ndwBcD690vPT9oLIeep+5SZdgd8tgMBBpME6sbtLPyMyCXYY 1pZdSkryZkTDmr/G96ZPWat2OAI5GPl2R4CnB5mEahkHEbbKA7a/VzFNFpftySs5jNin OUxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:mime-version:references :in-reply-to:subject:cc:to:from; bh=eIoWGi3U/SGYr7w5rrsbliBxDrgak+FNrEviy/8rGIk=; b=QarEELyydmiS0ogt6mcv/qkmTobNnFbE8Ccv+B38XcZ5CZS2iIA/qTQX+xW1V5JsPN zf5lnQj8Ws5qNMRQULvHr2tAcon4aqeSsKA7mmmE4bQIYgcHpx28wOnJPMQonNvnsCDz /B0S68c3fEmO+0oPdVSP9H6flpIqMYhQTi9bGGEtLGlQ48CrpZs73COHXWlKV4MTqqHM fdd2tWCdtA8yaupOJnDWxntHfrr4SI5PCpxKh7Le4jMUKhsrd3vo7aRii9kv38NiI8yp Jt4v0I7PuJfW9QjpQegCREkUtOEmBPPY5gRmfrcUZQ4DbpIPn9nCiyWqMJdcs1Nqthet rk5Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si1658515edj.354.2019.10.30.08.43.53; Wed, 30 Oct 2019 08:44:16 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbfJ3PlG (ORCPT + 99 others); Wed, 30 Oct 2019 11:41:06 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:35318 "EHLO omr2.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726461AbfJ3PlG (ORCPT ); Wed, 30 Oct 2019 11:41:06 -0400 Received: from mr4.cc.vt.edu (mr4.cc.ipv6.vt.edu [IPv6:2607:b400:92:8300:0:7b:e2b1:6a29]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x9UFf5QL006874 for ; Wed, 30 Oct 2019 11:41:05 -0400 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x9UFf03u006364 for ; Wed, 30 Oct 2019 11:41:05 -0400 Received: by mail-qt1-f199.google.com with SMTP id k53so2835763qtk.0 for ; Wed, 30 Oct 2019 08:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:date:message-id; bh=eIoWGi3U/SGYr7w5rrsbliBxDrgak+FNrEviy/8rGIk=; b=Qem+ASaUqScax1MPITXVxJ1SgXRm9hCJVEihvwSGN9gKwYr17G27oMRABiqBBY1vh4 DY25yp8cHpZxbhESVkE8fSZOqXFDgmwM807N4FaG7Er4nDP95bRWTHyifwhIU7FlEZkh DnQAOa0vgO1mjmFJXQ8Oaz1WM0pTa4Jubd74EIInriusXhvSJe3gHMnSxX7NECt1u0GF ZRQ/uMB/eCuKK4QKMNs4uB0lIkwx7bypuxjXKHihdxgd7+uegml4kVaAWVA3eoQ09WTp ZXuLmRiyHRXGtkrf6EvlyyGXnMggo6zU6ffbwZi9pAAqqSqkPlsMaw9lO511Py/27Eme Tedw== X-Gm-Message-State: APjAAAURMU3QU2U4b1rdxJdjOFIAJ/s9d7WSer7oilVEbfsPTNRCdCmY NCLudnQyOwcSUKG1ep8MrD2xO7UT2wxs+Ic3yHc4bE/A60abmIdIakszZh7m2/1UajupAsI+NT4 kwLQk/5BDyehY/v/syD9K3un3OTrXA0V61Pk= X-Received: by 2002:ac8:7546:: with SMTP id b6mr716402qtr.104.1572450059574; Wed, 30 Oct 2019 08:40:59 -0700 (PDT) X-Received: by 2002:ac8:7546:: with SMTP id b6mr716361qtr.104.1572450059254; Wed, 30 Oct 2019 08:40:59 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id c17sm273439qkm.37.2019.10.30.08.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 08:40:58 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Davidlohr Bueso cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] drivers/staging/exfat: Replace binary semaphores for mutexes In-reply-to: <20191030144916.10802-1-dave@stgolabs.net> References: <20191029080521.GA494993@kroah.com> <20191030144916.10802-1-dave@stgolabs.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 Oct 2019 11:40:57 -0400 Message-ID: <74400.1572450057@turing-police> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 30 Oct 2019 07:49:16 -0700, Davidlohr Bueso said: > At a slight footprint cost (24 vs 32 bytes), mutexes are more optimal > than semaphores; it's also a nicer interface for mutual exclusion, > which is why they are encouraged over binary semaphores, when possible. > > For both v_sem and z_sem, their semantics imply traditional lock > ownership; that is, the lock owner is the same for both lock/unlock > operations. Therefore it is safe to convert. > > Signed-off-by: Davidlohr Bueso Looks sane. Acked-by: Valdis Kletnieks