[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iJqVtN9icrqO-L0fiFNcVRYp7gdu6o8E5q=EUhHHE9WdA@mail.gmail.com>
Date: Thu, 9 Nov 2023 19:03:07 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: Haifeng Xu <haifeng.xu@...pee.com>, j.vosburgh@...il.com,
andy@...yhouse.net, davem@...emloft.net, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] boning: use a read-write lock in bonding_show_bonds()
On Thu, Nov 9, 2023 at 6:55 PM Stephen Hemminger
<stephen@...workplumber.org> wrote:
> Reader-writer locks are slower than spin locks and should be discouraged.
> Would it be possible to use RCU here instead?
I doubt there is a case for repeatedly reading this file ?
This 'lock' is only for slow paths, it doesn't really matter what it is.
Powered by blists - more mailing lists