Re: [PATCH v11 2/4] mm/page_owner: add NUMA node filter

From: zhen.ni

Date: Fri Jun 26 2026 - 04:39:33 EST




在 2026/6/26 02:37, Zi Yan 写道:
+ nid = memdesc_nid(page_flags);
+ if (!node_isset(nid, state->nid_filter)) {
+ spin_unlock_irqrestore(&state->lock, flags);
+ goto ext_put_continue;
+ }
+ }
+ spin_unlock_irqrestore(&state->lock, flags);
+
/* Record the next PFN to read in the file offset */
*ppos = pfn + 1;
@@ -783,6 +807,7 @@ read_page_owner(struct file *file, char __user *buf, size_t count, loff_t *ppos)
&page_owner_tmp, handle, state);
ext_put_continue:
page_ext_put(page_ext);
+ cond_resched();
In the changelog above, cond_resched() is said to be removed in V10. Did
you miss this? Or it is intended.



Sorry. This is a changelog error in v10.

The v10 changelog wording is misleading. It should say:

"Remove need_resched() check, call cond_resched() unconditionally"



Otherwise, LGTM.

Acked-by: Zi Yan<ziy@xxxxxxxxxx>