From: Sasha Levin Date: Sat, 28 Apr 2012 05:40:01 +0000 (+0200) Subject: RDMA/ocrdma: Don't sleep in atomic notifier handler X-Git-Tag: v3.5-rc1~171^2^8~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e4d60a82e7ab4cd6e212b6834c6a48c79731957;p=pandora-kernel.git RDMA/ocrdma: Don't sleep in atomic notifier handler 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 gone ahead and switched the list to use RCU instead. I couldn't fully test it since I don't have IB hardware, so if it doesn't fully work for some reason let me know and I'll switch it back to using a spinlock. Signed-off-by: Sasha Levin [ Fixed locking in ocrdma_add(). - Roland ] Signed-off-by: Roland Dreier --- Reading git-diff-tree failed