File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -663,6 +663,7 @@ HPAGEFLAG(RawHwpUnreliable, raw_hwp_unreliable)
663663/* Defines one hugetlb page size */
664664struct hstate {
665665 struct mutex resize_lock ;
666+ struct lock_class_key resize_key ;
666667 int next_nid_to_alloc ;
667668 int next_nid_to_free ;
668669 unsigned int order ;
Original file line number Diff line number Diff line change @@ -4642,7 +4642,7 @@ void __init hugetlb_add_hstate(unsigned int order)
46424642 BUG_ON (hugetlb_max_hstate >= HUGE_MAX_HSTATE );
46434643 BUG_ON (order < order_base_2 (__NR_USED_SUBPAGE ));
46444644 h = & hstates [hugetlb_max_hstate ++ ];
4645- mutex_init (& h -> resize_lock );
4645+ __mutex_init (& h -> resize_lock , "resize mutex" , & h -> resize_key );
46464646 h -> order = order ;
46474647 h -> mask = ~(huge_page_size (h ) - 1 );
46484648 for (i = 0 ; i < MAX_NUMNODES ; ++ i )
You can’t perform that action at this time.
0 commit comments