RE: [PATCH v4 6/8] mm: Introduce deferred freeing for kernel page tables

Tian, Kevin
2025-09-12T08:17:28Z

> From: Jason Gunthorpe <jgg@nvidia.com>
> Sent: Saturday, September 6, 2025 2:44 AM
>
> On Fri, Sep 05, 2025 at 01:51:01PM +0800, Lu Baolu wrote:
>
> > + list_for_each_entry_safe(pt, next, &page_list, pt_list) {
> > + list_del(&pt->pt_list);
>
> The list_del isn't necessary, it doesn't zero the list, just _safe
> iteration is fine.
>

if no list_del why need to keep the _safe iteration?