On Fri, Apr 27, 2012 at 10:40 PM, Sasha Levin wrote:
> + spin_lock(&ocrdma_devlist_lock);
> + list_add_tail_rcu(&dev->entry, &ocrdma_dev_list);
> + spin_lock(&ocrdma_devlist_lock);
Er, applied with this fixed to be spin_unlock at the end...
--
To unsubscribe from this list: send
Events sent to ocrdma_inet6addr_event() are sent from an atomic context,
therefore
we can't try to lock a mutex within the notifier callback.
We could just switch the mutex to a spinlock since all it does it protect a
list,
but I've went ahead and switched the list to use RCU instead. I couldn't