Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415307

Re: [PATCH] spinlock: Get rid of spin_can_lock()

From Davidlohr Bueso <dave@stgolabs.net>
Newsgroups linux.kernel
Subject Re: [PATCH] spinlock: Get rid of spin_can_lock()
Date 2016-06-06 19:30 +0200
Message-ID <rH6vD-7U4-9@gated-at.bofh.it> (permalink)
References <rBYyK-6yX-25@gated-at.bofh.it> <rFdKW-8sS-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 01 Jun 2016, Peter Zijlstra wrote:

>On Mon, May 23, 2016 at 06:54:02AM -0700, Davidlohr Bueso wrote:
>> ... it has no users and we already have the the regular spin_is_lock()
>> call anyway -- although iirc this was going to be different
>> than the simple negation for lock elision implementations. Lets drop it.
>
>What about {read,write}_can_lock() ? those look equally unused and
>borken.

Hmm so the break_lock thingie for archs that don't have ticket locks (or
queued obviously) want to use these, mainly for is_contended() usage afaict.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH] spinlock: Get rid of spin_can_lock() Peter Zijlstra <peterz@infradead.org> - 2016-06-01 14:50 +0200
  Re: [PATCH] spinlock: Get rid of spin_can_lock() Davidlohr Bueso <dave@stgolabs.net> - 2016-06-06 19:30 +0200

csiph-web