lkml.org 
[lkml]   [2010]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 6 Apr 2010 12:39:17 -0700 (PDT)
FromLinus Torvalds <>
SubjectRe: [PATCH] radix_tree_tag_get() is not as safe as the docs make out


On Tue, 6 Apr 2010, David Howells wrote:
>
> radix_tree_tag_get() is not safe to use concurrently with radix_tree_tag_set()
> or radix_tree_tag_clear(). The problem is that the double tag_get() in
> radix_tree_tag_get():
[ snip snip ]

Looks like a reasonable patch, but the one thing you didn't say is whether
there is any code that relies on the incorrectly documented behavior?

How did you find this? Do we need to fix actual code too? The only user
seems to be your fscache/page.c thing, and I'm not seeing any locking
except for the rcu locking that is apparently not sufficient.

Linus


\
 
 \ /
  Last update: 2010-04-06 21:45    [from the cache]
©2003-2010