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)
commitb65c2045cc5089bd3cfacc9fad63798fded64226
treeca0731936e74205d458e460fc38fcbdc854a16fd
parent621515da67f150eea0e7b6b05614bd0b65d9d16c
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