lkml.org 
[lkml]   [2015]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] proc: change proc_subdir_lock to a rwlock
From
On Thu, Jul 30, 2015 at 1:21 AM, Eric W. Biederman
<ebiederm@xmission.com> wrote:
> Two quick questions.
>
> - What motivates this work? Are you seeing lots of
> parallel reads on proc?

Well, yes, benchmark looks like very synthetic.
But even gcc opens /proc/meminfo, so might as well
apply the change.

Patch looks like obviously correct to me.

> - Why not rcu? Additions and removal of proc generic
> files is very rare. Conversion to rcu for reads should
> perform better and not take much more work.

If you want proc locking to be understood by ~10 people
on the planet then yes, there is RCU. :-)


\
 
 \ /
  Last update: 2015-07-30 18:21    [W:0.087 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site