[Intel-wired-lan] [net PATCH] i40e/i40evf: avoid mutex re-init

Jesse Brandeburg jesse.brandeburg at intel.com
Wed Nov 18 23:12:47 UTC 2015


On Wed, 18 Nov 2015 10:01:41 -0800
Jesse Brandeburg <jesse.brandeburg at intel.com> wrote:

> If the driver were to happen to have a mutex held while
> the i40e_init_adminq call was called, the init_adminq might
> inadvertently call mutex_init on a lock that was held
> which is a violation of the calling semantics.
> 
> Fix this by avoiding adminq.c code allocating/freeing this memory, and
> then do the same work only once in probe/remove.
> 
> Testing Hints (Required if no HSD): for VF, load i40evf in bare metal
> and echo 32 > sriov_numvfs; echo 0 > sriov_numvfs in a loop.  Yes this
> is a horrible thing to do.
> 
> Reported-by: Stefan Assmann <sassmann at redhat.com>
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg at intel.com>
> Change-ID: Ida263c51b34e195252179e7e5e400d73a99be7a2

This patch has a bug, v2 will be sent.


More information about the Intel-wired-lan mailing list