Commit 0376d229 authored by Wei Li's avatar Wei Li
Browse files

arm64/mpam: Fix repeated enabling in mpam_enable()

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9AZFU



--------------------------------

In mpam_enable(), the enabling process is designed to be called once after
all devices are probed. But if the kworker is parallel and delayed, it may
be called multi times, add an atomic guard to avoid this situation.

Fixes: e4173244 ("arm64/mpam: Probe supported partid/pmg ranges from devices")
Signed-off-by: default avatarWei Li <liwei391@huawei.com>
parent b670dd90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment