Skip to content
Commit ce54788e authored by Yu Liao's avatar Yu Liao
Browse files

arm64/mpam: Fix softlockup when reading mondata

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



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

resctrl_dom_mon_data() call do_device_sync() wait for other CPU to respond
IPI, which is expensive (up to a few ms). resctrl_dom_mon_data() may be
called hundreds of times by resctrl_group_mondata_show(), causing soft
lockup.

Fix this by adding a cond_resched between each loop.

Do the same for resctrl_group_update_domain_ctrls().

Fixes: 8d7469cd ("arm64/mpam: Integrate monitor data for Memory Bandwidth if cdp enabled")
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
parent ea1ed790
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment