[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <25610.1270579965@redhat.com>
Date: Tue, 06 Apr 2010 19:52:45 +0100
From: David Howells <dhowells@...hat.com>
To: Nick Piggin <npiggin@...e.de>
Cc: dhowells@...hat.com, paulmck@...ux.vnet.ibm.com, corbet@....net,
linux-kernel@...r.kernel.org, linux-cachefs@...hat.com
Subject: Re: An incorrect assumption over radix_tree_tag_get()
Nick Piggin <npiggin@...e.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists