Re: [PATCH v8 1/5] mm: introduce a common interface for balloonpages mobility

From: Peter Zijlstra
Date: Tue Aug 21 2012 - 11:20:23 EST


On Tue, 2012-08-21 at 09:47 -0300, Rafael Aquini wrote:
> + mapping = rcu_access_pointer(page->mapping);
> + if (mapping)
> + mapping = mapping->assoc_mapping;

The comment near rcu_access_pointer() explicitly says:

* Return the value of the specified RCU-protected pointer, but omit the
* smp_read_barrier_depends() and keep the ACCESS_ONCE(). This is useful
* when the value of this pointer is accessed, but the pointer is not
* dereferenced,

Yet you dereference the pointer... smells like fail to me.
--
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/