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


Groups > linux.kernel > #1418399

Re: [RFC 10/12] x86, rwsem: simplify __down_write

From David Howells <dhowells@redhat.com>
Newsgroups linux.kernel
Subject Re: [RFC 10/12] x86, rwsem: simplify __down_write
Date 2016-06-09 16:50 +0200
Message-ID <rI9rs-7FY-13@gated-at.bofh.it> (permalink)
References (1 earlier) <qXPKi-8sh-3@gated-at.bofh.it> <qXPKj-8sh-35@gated-at.bofh.it> <qY0Po-7NH-11@gated-at.bofh.it> <rFZZf-5w1-7@gated-at.bofh.it> <rG5UZ-Ei-13@gated-at.bofh.it>
Organization Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903

Show all headers | View raw


Peter Zijlstra <peterz@infradead.org> wrote:

> Blergh; so looking at more asm there's still a few tricks we cannot do.
> So while overall size is down, some paths do end up more expensive. (It
> typically boils down to creative use of condition flags, which is very
> hard in C)

It can be done using ISO __atomic_fetch_add() and suchlike.

David

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


Thread

Re: [RFC 10/12] x86, rwsem: simplify __down_write Peter Zijlstra <peterz@infradead.org> - 2016-06-03 18:20 +0200
  Re: [RFC 10/12] x86, rwsem: simplify __down_write Peter Zijlstra <peterz@infradead.org> - 2016-06-04 00:40 +0200
    Re: [RFC 10/12] x86, rwsem: simplify __down_write David Howells <dhowells@redhat.com> - 2016-06-09 16:50 +0200
      Re: [RFC 10/12] x86, rwsem: simplify __down_write Peter Zijlstra <peterz@infradead.org> - 2016-06-09 19:40 +0200
        Re: [RFC 10/12] x86, rwsem: simplify __down_write "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-06-10 20:00 +0200

csiph-web