lkml.org 
[lkml]   [2019]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH-tip v3 02/14] locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER
On Wed, Apr 10, 2019 at 02:42:19PM -0400, Waiman Long wrote:
> The owner field in the rw_semaphore structure is used primarily for
> optimistic spinning. However, identifying the rwsem owner can also be
> helpful in debugging as well as tracing locking related issues when
> analyzing crash dump. The owner field may also store state information
> that can be important to the operation of the rwsem.
>
> So the owner field is now made a permanent member of the rw_semaphore
> structure irrespective of CONFIG_RWSEM_SPIN_ON_OWNER.

sem->owner is still initialized under CONFIG_RWSEM_SPIN_ON_OWNER.

\
 
 \ /
  Last update: 2019-04-11 10:13    [W:0.166 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site