]> git.ipfire.org Git - thirdparty/linux.git/commit
mshv: Only map vp->vp_stats_pages if on root scheduler
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Fri, 10 Oct 2025 21:55:47 +0000 (14:55 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:15 +0000 (06:18 +0000)
commit9ebc528cfdada055984f919710c31be281cb717c
tree0d78f3009ab0eb227a5c35e0752e4f03525dfda7
parent2647c96649ba4ba9fb0fa5dfd101a15257145a3d
mshv: Only map vp->vp_stats_pages if on root scheduler

This mapping is only used for checking if the dispatch thread is
blocked. This is only relevant for the root scheduler, so check the
scheduler type to determine whether to map/unmap these pages, instead of
the current check, which is incorrect.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Anirudh Rayabharam <anirudh@anirudhrb.com>
Reviewed-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@linux.microsoft.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Acked-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_root_main.c