Commit 50740f4
scsi: megaraid_sas: Fix for a potential deadlock
This fixes a 'possible circular locking dependency detected' warning
CPU0 CPU1
---- ----
lock(&instance->reset_mutex);
lock(&shost->scan_mutex);
lock(&instance->reset_mutex);
lock(&shost->scan_mutex);
Fix this by temporarily releasing the reset_mutex.
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20240923174833.45345-1-thenzl@redhat.com
Acked-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 2c354d1 commit 50740f4
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8907 | 8907 | | |
8908 | 8908 | | |
8909 | 8909 | | |
8910 | | - | |
| 8910 | + | |
| 8911 | + | |
8911 | 8912 | | |
| 8913 | + | |
| 8914 | + | |
8912 | 8915 | | |
8913 | 8916 | | |
8914 | 8917 | | |
| |||
0 commit comments