Skip to contentSkip to conversation

scsi: lpfc: Fix hardlockup in lpfc_abort_handler

DISCUSSION James Smart 1 participant 1 message Oct 10, 2019 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 20 lines · Zhangguanghui

Hi everyone

Please refer to the latest patch.

There is a race deadlock in the function lpfc_abort_handler

potential deadlocks arising from lock ordering problems.

It’s the correct order

spin_unlock(&lpfc_cmd->buf_lock)

spin_unlock_irqrestore(&phba->hbalock, flags);

How to solve it ? I think that the patch is reasonable,

can you help me review and commit this patch, Best regards

src/lpfc-12.2.0.0/lpfc_scsi.c +0 -0
Quoted 6 lines

index 3f1375a..19c8505 100644

--- a/src/lpfc-12.2.0.0/lpfc_scsi.c

+++ b/src/lpfc-12.2.0.0/lpfc_scsi.c

We confirmed the issue you stated. We are looking at what you proposed and will be adding a patch that will be posted in our next patch set after we've put it through some regression testing.

-- james