lkml.org 
[lkml]   [2010]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
FromDavid Howells <>
SubjectRe: An incorrect assumption over radix_tree_tag_get()
DateTue, 06 Apr 2010 19:52:45 +0100
Nick Piggin <npiggin@suse.de> wrote:

> It is safe. Synchronization requirements for using the radix tree API
> are documented.

I presume you mean the big comment on it in radix-tree.h.

According to that, it is not safe:

* - any function _modifying_ the tree or tags (inserting or deleting
* items, setting or clearing tags) must exclude other modifications, and
* exclude any functions reading the tree.

David


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