]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Fix hard lockup due to not using save/restore spin lock
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 24 May 2016 19:50:23 +0000 (12:50 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 26 May 2016 16:21:10 +0000 (12:21 -0400)
commitad55147c544ae54de005eba2fe3acdf4491a3689
treea6830c3cf1d7de51014c16aa3ca2645961cefa95
parentf2c773a54c9251a5a2a26fb97db4cbf1f3b623a9
IB/hfi1: Fix hard lockup due to not using save/restore spin lock

Commit 182ebf0c0459
("IB/hfi1: Fix missing lock/unlock in verbs drain callback")
added a spin lock.

Unfortunately, the new lock code can be called from a base
level interrupt state, and an interrupt that can get stacked
will attempt to get the same lock.

Fix by using the flag save/restore spin lock variation.

Cc: stable@vger.kernel.org # 4.6+
Reviewed-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/qp.c