diff options
author | James Smart <jsmart2021@gmail.com> | 2019-10-18 14:18:22 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-10-24 21:02:04 -0400 |
commit | 91a52b617cdb8bf6d298892101c061d438b84a19 (patch) | |
tree | 4fed6bb37cacb133fe24c1109ae12e8622885e1f /drivers/base | |
parent | 324e1c402069e8d277d2a2b18ce40bde1265b96a (diff) | |
download | linux-next-91a52b617cdb8bf6d298892101c061d438b84a19.tar.gz |
scsi: lpfc: Fix hardlockup in lpfc_abort_handler
In lpfc_abort_handler, the lock acquire order is hbalock (irqsave),
buf_lock (irq) and ring_lock (irq). The issue is that in two places the
locks are released out of order - the buf_lock and the hbalock - resulting
in the cpu preemption/lock flags getting restored out of order and
deadlocking the cpu.
Fix the unlock order by fully releasing the hbalocks as well.
CC: Zhangguanghui <zhang.guanghui@h3c.com>
Link: https://lore.kernel.org/r/20191018211832.7917-7-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions