[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250228161908.3d7c997c@kernel.org>
Date: Fri, 28 Feb 2025 16:19:08 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: allison.henderson@...cle.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 1/6] net/rds: Avoid queuing superfluous send and recv
work
On Wed, 26 Feb 2025 21:26:33 -0700 allison.henderson@...cle.com wrote:
> + /* clear_bit() does not imply a memory barrier */
> + smp_mb__before_atomic();
> + clear_bit(RDS_SEND_WORK_QUEUED, &cp->cp_flags);
> + /* clear_bit() does not imply a memory barrier */
> + smp_mb__after_atomic();
I'm guessing the comments were added because checkpatch asked for them.
The comments are supposed to indicate what this barrier pairs with.
I don't see the purpose of these barriers, please document..
Powered by blists - more mailing lists