Re: [PATCH] RDMA/ocrdma: Don't sleep in atomic notifier handler

2012-05-02 Thread Roland Dreier
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

[PATCH] RDMA/ocrdma: Don't sleep in atomic notifier handler

2012-04-27 Thread Sasha Levin
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