]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Correct unnecessary acquisition of HW mutex
authorGrzegorz Morys <grzegorz.morys@intel.com>
Mon, 9 Oct 2017 19:38:04 +0000 (12:38 -0700)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 14:12:59 +0000 (10:12 -0400)
commitf05bf8b4b4938fd2709b4f04dcbd25c5ac5f4363
treeca0731936e74205d458e460fc38fcbdc854a16fd
parentd816229122fb9c87ff9f15f04acb95963cdd4249
IB/hfi1: Correct unnecessary acquisition of HW mutex

Avoid acquiring already acquired hardware mutex and releasing
the unacquired one as these are redundant operations.
Add printouts for such situations to help detect potential errors
within the driver.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Grzegorz Morys <grzegorz.morys@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/firmware.c