Re: [PATCH 1/8] mm: use zone lock guard in reserve_highatomic_pageblock()

From: Dan Williams

Date: Thu Mar 12 2026 - 19:41:07 EST


Peter Zijlstra wrote:
[..]
> However, looking at things again, I think we can get rid of that
> unconditional __GUARD_IS_ERR(), something like the below, Dan?

I think it makes sense, do not make everyone pay the cost of
__GUARD_IS_ERR() at least until a better __GUARD_IS_ERR() comes along.

I gave the below a run through the CXL subsystem tests which uses
conditional guards quite a bit. Worked fine, and looks good to me.

So feel free to add a "tested by" from me. Not putting the actual tag
here so that b4 does not slurp a tag for the wrong patchset.

> ---
> --- a/include/linux/cleanup.h
> +++ b/include/linux/cleanup.h
[..]