Unverified Commit 88b69da4 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15192 scsi: megaraid_sas: Fix for a potential deadlock

parents c42a70c2 88318e0f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8904,8 +8904,11 @@ megasas_aen_polling(struct work_struct *work)
						   (ld_target_id / MEGASAS_MAX_DEV_PER_CHANNEL),
						   (ld_target_id % MEGASAS_MAX_DEV_PER_CHANNEL),
						   0);
			if (sdev1)
			if (sdev1) {
				mutex_unlock(&instance->reset_mutex);
				megasas_remove_scsi_device(sdev1);
				mutex_lock(&instance->reset_mutex);
			}

			event_type = SCAN_VD_CHANNEL;
			break;