]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Correcting mutex usage in client code
authorAvinash Dayanand <avinash.dayanand@intel.com>
Wed, 17 Aug 2016 23:04:06 +0000 (16:04 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:38:22 +0000 (19:38 -0500)
commit6c8609f27ca8b0782cd9ce89d07ddec91919a3a1
tree46c76bd539dfeea80b037d0668621df1729c0dc0
parent9e3d3deb8b94ef2b3e8c5f6de39a67eed3f3d167
i40e: Correcting mutex usage in client code

Orabug: 24568124

Correcting the mutex usage, in client_subtask(), mutex_unlock has
to be called just before client_del_instance() since this function opens
and later closes the same mutex again.
Similarly in client_is_registered removing the mutex since it closes
the mutex twice.

This is a patch suggested by RDMA team.

Change-ID: Icce519c266e4221b8a2a72a15ba5bf01750e5852
Signed-off-by: Avinash Dayanand <avinash.dayanand@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 0d8ab54a4119880bb9cb4680da1f5e9068d0d333)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_client.c