On Thu, Apr 01, 2021 at 01:42:57PM +0000, Wan, Kaike wrote: > Shouldn't xa_destroy() always be called during cleanup, just in case > that something is left behind? No. > Check the following: Since I didn't write a WARN_ON(!xa_empty()) it means they were not made empty. IIRC there is some special stuff there with XA_ZERO_ENTRY that causes it. Jason