lkml.org 
[lkml]   [2004]   [Dec]   [9]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 9 Dec 2004 02:09:19 -0800
FromAndrew Morton <>
SubjectRe: negative dentry_stat.nr_unused causes aggressive dcache pruning
Steve Lord <lord@xfs.org> wrote:
>
> I have seen this stat go negative (just from booting up a multi cpu box),
>  and looking at the code, it is manipulated without locking in a number
>  of places. I have only seen this in real life on a 2.4 kernel, but 2.6
>  also looks vulnerable.

In 2.6, both dentry_stat.nr_unused and dentry_stat.nr_dentry are covered
by dcache_lock.  I just double-checked and all seems well.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [from the cache]
©2003-2008