diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-07-21 11:52:07 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-06 18:57:23 -0700 |
| commit | 47f3cecd720f8f8d94ad2f206e3bfe3bc2d3d4e5 (patch) | |
| tree | a6ada2d8d803305c9bdf7e6f4f7f27212330de9b /tools/perf/scripts/python/bin/task-analyzer-report | |
| parent | 64a853c9a648be315ba92d50270791cf40ce0708 (diff) | |
hugetlb: evaluate subpool free state while locked
unlock_or_release_subpool() drops spool->lock before calling
subpool_is_free(). However, subpool_is_free() reads fields that are
updated under spool->lock, including count, used_hpages and rsv_hpages.
Keep the free-state evaluation under the same lock that protects those
fields. The reservation accounting and kfree() calls still happen after
dropping spool->lock.
Link: https://lore.kernel.org/20260721035207.1437935-1-chenyichong@uniontech.com
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>
Reviewed-by: Jane Chu <jane.chu@oracle.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions
