Re: [PATCH v3] loop: defer the queue limits clear to a workqueue

From: Bart Van Assche

Date: Fri Sep 18 2026 - 18:33:45 EST


On 9/2/26 6:38 PM, Tao Cui wrote:
+ struct work_struct clear_limits_work;
+ atomic_t clear_limits_mode;
+ atomic_t rebind_gen;
+ atomic_t clear_limits_gen;

Three new atomic variables? That's too much because it makes it much
harder than necessary to verify the code changes. Please change the
atomic variables to non-atomic and use a new mutex to serialize accesses
to the new variables.

Thanks,

Bart.