]> 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)
commitb93bfdd58fb221705e2d3fa78258e84aefed3e29
treeca0731936e74205d458e460fc38fcbdc854a16fd
parent289ea4d131d9d606f8cf6c050529fa00b9fc95e5
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