Re: RE: [PATCH v12 14/25] fs/resctrl: Rebuild free RMID list on each mount
From: Moger, Babu
Date: Wed Sep 23 2026 - 09:31:20 EST
On 9/22/2026 6:07 PM, Luck, Tony wrote:
Will something like this work?
list_for_each_entry_safe(entry, tmp, &rmid_free_lru, list)
list_del(&entry->list);
INIT_LIST_HEAD(&rmid_free_lru);
It would work .... but definitely going to provoke a "what?"
review comment. If you remove all entries from the list,
the INIT_LIST_HEAD() becomes pointless.
Yea. True. I see kernel calling list_del_init() all the places when cleaning the list which does the same thing mostly(calls INIT_LIST_HEAD on empty list).
thanks
Babu