Re: [PATCH 2/3] of: Introduce safe accessors for node->data

From: Grant Likely
Date: Tue Feb 09 2010 - 12:25:58 EST


On Fri, Feb 5, 2010 at 1:50 PM, Anton Vorontsov
<avorontsov@xxxxxxxxxxxxx> wrote:
> Platform code use node->data to store some private information
> associated with a node.
>
> Previously there was no need for any locks and accessors since we were
> initializing the data mostly at boot time and never modified it later.
>
> Though, nowadays OF GPIO infrastructure supports GPIO chips detaching,
> so to handle this correctly we have to introduce locking for the
> node->data field.

I'm not convinced this is needed. What's wrong with using the
whole-tree devtree_lock?

g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/