lkml.org 
[lkml]   [2009]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [patch 03/33] fs: scale files_lock
From
Date
On Fri, 2009-09-04 at 16:51 +1000, npiggin@suse.de wrote:
> +static void file_list_lock_all(void)
> +{
> + int i;
> + int nr = 0;
> +
> + for_each_possible_cpu(i) {
> + spinlock_t *lock;
> +
> + lock = &per_cpu(files_cpulock, i);
> + spin_lock_nested(lock, nr);
> + nr++;
> + }
> +}

Same here, this'll make lockdep explode on >8-way. And create large spin
times on large smp boxen.



\
 
 \ /
  Last update: 2009-09-28 15:25    [W:0.931 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site