[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZfLkyiTssYD8wmVl@localhost.localdomain>
Date: Thu, 14 Mar 2024 12:51:38 +0100
From: Michal Kubiak <michal.kubiak@...el.com>
To: Yewon Choi <woni9911@...il.com>
CC: Allison Henderson <allison.henderson@...cle.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, <netdev@...r.kernel.org>,
<linux-rdma@...r.kernel.org>, <rds-devel@....oracle.com>,
<linux-kernel@...r.kernel.org>, "Dae R. Jeong" <threeearcat@...il.com>
Subject: Re: [PATCH net] rds: introduce acquire/release ordering in
acquire/release_in_xmit()
On Thu, Mar 14, 2024 at 08:21:35PM +0900, Yewon Choi wrote:
> acquire/release_in_xmit() work as bit lock in rds_send_xmit(), so they
> are expected to ensure acquire/release memory ordering semantics.
> However, test_and_set_bit/clear_bit() don't imply such semantics, on
> top of this, following smp_mb__after_atomic() does not guarantee release
> ordering (memory barrier actually should be placed before clear_bit()).
>
> Instead, we use clear_bit_unlock/test_and_set_bit_lock() here.
>
> Signed-off-by: Yewon Choi <woni9911@...il.com>
Missing "Fixes" tag for the patch addressed to the "net" tree.
Thanks,
Michal
Powered by blists - more mailing lists