From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: dm-snapshot: use mutex instead of rw-semaphore Date: Fri, 5 Jan 2018 15:24:09 -0500 Message-ID: <20180105202409.GA21622@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: dm-devel@redhat.com List-Id: dm-devel.ids On Thu, Nov 23 2017 at 4:15pm -0500, Mikulas Patocka wrote: > The rw-semaphore is acquired for read only on two places, none of them is > performance-critical. So, we can replace it with a mutex. Can you expand on why you'd like to avoid using a rw_semaphore? mutex being faster in the fast path? Thanks, Mike