Re: __mutex_lock_common() unlikely very likely

2017-01-19 Thread Steven Rostedt
On Thu, 19 Jan 2017 08:55:07 + Chris Wilson wrote: > On Wed, Jan 18, 2017 at 03:58:24PM -0500, Steven Rostedt wrote: > > Chris, > > > > My branch tracer flagged the unlikely in __mutex_lock_common() as > > always hit. That's the: > > > > if (use_ww_ctx) { > >

Re: __mutex_lock_common() unlikely very likely

2017-01-19 Thread Steven Rostedt
On Thu, 19 Jan 2017 08:55:07 + Chris Wilson wrote: > On Wed, Jan 18, 2017 at 03:58:24PM -0500, Steven Rostedt wrote: > > Chris, > > > > My branch tracer flagged the unlikely in __mutex_lock_common() as > > always hit. That's the: > > > > if (use_ww_ctx) { > > [...] > >

Re: __mutex_lock_common() unlikely very likely

2017-01-19 Thread Chris Wilson
On Wed, Jan 18, 2017 at 03:58:24PM -0500, Steven Rostedt wrote: > Chris, > > My branch tracer flagged the unlikely in __mutex_lock_common() as > always hit. That's the: > > if (use_ww_ctx) { > [...] > if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) >

Re: __mutex_lock_common() unlikely very likely

2017-01-19 Thread Chris Wilson
On Wed, Jan 18, 2017 at 03:58:24PM -0500, Steven Rostedt wrote: > Chris, > > My branch tracer flagged the unlikely in __mutex_lock_common() as > always hit. That's the: > > if (use_ww_ctx) { > [...] > if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) >

__mutex_lock_common() unlikely very likely

2017-01-18 Thread Steven Rostedt
Chris, My branch tracer flagged the unlikely in __mutex_lock_common() as always hit. That's the: if (use_ww_ctx) { [...] if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) return -EALREADY; } This is hit 100% of the time, and its

__mutex_lock_common() unlikely very likely

2017-01-18 Thread Steven Rostedt
Chris, My branch tracer flagged the unlikely in __mutex_lock_common() as always hit. That's the: if (use_ww_ctx) { [...] if (unlikely(ww_ctx == READ_ONCE(ww->ctx))) return -EALREADY; } This is hit 100% of the time, and its