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


Groups > linux.kernel > #1431790

Re: [PATCH] locking/osq: Drop the overload of osq lock

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH] locking/osq: Drop the overload of osq lock
Date 2016-06-27 10:00 +0200
Message-ID <rOzCx-5JR-7@gated-at.bofh.it> (permalink)
References (3 earlier) <rNYjD-7B7-9@gated-at.bofh.it> <rNYtj-7Eq-11@gated-at.bofh.it> <rNZz4-8h4-5@gated-at.bofh.it> <rO1hw-Vr-5@gated-at.bofh.it> <rOakN-6Gg-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Jun 26, 2016 at 12:59:01PM +0800, panxinhui wrote:
> 
> > 在 2016年6月26日,03:12,Peter Zijlstra <peterz@infradead.org> 写道:
> > 
> > On Sun, Jun 26, 2016 at 01:27:51AM +0800, panxinhui wrote:
> > 
> >> by the way I still think mutex_unlock has a big overload too. 
> > 
> > Do you mean overhead?
> > 
> oh, maybe you are right. 

> mutex_unlock ’s implementation uses inc_return variant on  ppc, and
> that’s expensive. I am thinking of using  cmpxchg instead. 

That statement doesn't make any sense. PPC is an LL/SC arch, inc_return
and cmpxchg are the 'same' LL/SC loop.

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


Thread

[PATCH] locking/osq: Drop the overload of osq lock Pan Xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-06-25 15:50 +0200
  Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 16:30 +0200
    Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-25 17:20 +0200
      Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 18:10 +0200
        Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 18:20 +0200
          Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-25 19:30 +0200
            Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 21:20 +0200
              Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-26 07:00 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-27 10:00 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-06-27 12:30 +0200
        Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-25 18:30 +0200
          Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 20:30 +0200
      Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 18:20 +0200
        Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-25 18:50 +0200
          Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-25 19:30 +0200
            Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 21:30 +0200
              Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-25 21:40 +0200
              Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-26 04:30 +0200
              Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-26 07:30 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-26 08:10 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-26 09:00 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-26 16:10 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-26 18:00 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-26 09:00 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-26 09:10 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-26 16:30 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock panxinhui <xinhui@linux.vnet.ibm.com> - 2016-06-26 17:20 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-27 08:50 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock xinhui <xinhui.pan@linux.vnet.ibm.com> - 2016-06-27 09:40 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Peter Zijlstra <peterz@infradead.org> - 2016-06-27 10:20 +0200
                Re: [PATCH] locking/osq: Drop the overload of osq lock Boqun Feng <boqun.feng@gmail.com> - 2016-06-27 12:30 +0200

csiph-web