]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 20 Aug 2016 04:40:34 +0000 (21:40 -0700)
commit71ecf18cf2cd7579c8f92fd488e88b86d2148c77
treeedec8f0786134783eb836592e763d88706e2813a
parenta1b008e564124faac11d85167186dde8e27ec979
i40e: Correcting mutex usage in client code

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>
drivers/net/ethernet/intel/i40e/i40e_client.c