[lkml]   [2018]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mm: introduce arg_lock to protect arg_start|end and env_start|end in mm_struct
> So, introduce a new rwlock in mm_struct to protect the concurrent access
> to arg_start|end and env_start|end.

I don't think an rwlock makes much sense here. There is almost no
concurrency on the read side, and an rwlock is more expensive than
a spinlock. Just use a spinlock.

 \ /
  Last update: 2018-03-24 05:31    [W:0.068 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site