Re: [PATCH] iommupt/kunit: Read an exact NR_SECONDARY_PAGETABLE snapshot for the leak check
From: fangyu . yu
Date: Wed Oct 28 2026 - 21:22:14 EST
>> The run fails consistently. In the example above, 14 of 21 tests
>> failed. With the proposed fix, the same command passes with 18
>> passed and 3 skipped.
>>
>> 3) Could you clarify what you meant by "disabling the check on !SMP"?
>
>Just
>
>if (!IS_ENABLED(CONFIG_SMP))
>
>With a comment explaining it
>
Got it, v2 will guard the assertion instead of open-coding the
vmstat snapshot:
│ if (!IS_ENABLED(CONFIG_SMP))
│ KUNIT_ASSERT_EQ(test, priv->orig_nr_secondary_pagetable,
│ global_node_page_state(NR_SECONDARY_PAGETABLE));
Thanks,
Fangyu
>Jason