Unverified Commit 11b27b93 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents ac7484c5 0376d229
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -568,6 +568,7 @@ static void mpam_enable(struct work_struct *work)
	unsigned long flags;
	struct mpam_device *dev;
	bool all_devices_probed = true;
	static atomic_t once;

	/* Have we probed all the devices? */
	mutex_lock(&mpam_devices_lock);
@@ -582,7 +583,7 @@ static void mpam_enable(struct work_struct *work)
	}
	mutex_unlock(&mpam_devices_lock);

	if (!all_devices_probed)
	if (!(all_devices_probed && !atomic_fetch_inc(&once)))
		return;

	mutex_lock(&mpam_devices_lock);