Re: [PATCH -next v5 3/3] cpuset: add helpers for cpus read and cpuset_mutex locks
From: Michal Koutný
Date: Wed Aug 27 2025 - 04:47:06 EST
On Wed, Aug 27, 2025 at 02:23:17PM +0800, Chen Ridong <chenridong@xxxxxxxxxxxxxxx> wrote:
> It was suggested to use a do-while construct for proper scoping. but it could not work if we define as:
Perhaps like this:
DEFINE_LOCK_GUARD_0(cpuset_full, cpuset_full_lock(), cpuset_full_unlock())
> So I sent this patch version.
No probs, it's a minor issue.
Michal
Attachment:
signature.asc
Description: PGP signature