From: Eli Cohen Date: Thu, 23 Oct 2014 12:57:26 +0000 (+0300) Subject: net/mlx5_core: Call synchronize_irq() before freeing EQ buffer X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~36^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96e4be06cbfcb8c9c2da7c77bacce0e56b581c0b;p=pandora-kernel.git net/mlx5_core: Call synchronize_irq() before freeing EQ buffer After destroying the EQ, the object responsible for generating interrupts, call synchronize_irq() to ensure that any handler routines running on other CPU cores finish execution. Only then free the EQ buffer. This patch solves a very rare case when we get panic on driver unload. The same thing is done when we destroy a CQ which is one of the sources generating interrupts. In the case of CQ we want to avoid completion handlers on a CQ that was destroyed. In the case we do the same to avoid receiving asynchronous events after the EQ has been destroyed and its buffers freed. Signed-off-by: Eli Cohen Signed-off-by: David S. Miller --- Reading git-diff-tree failed