Re: [PATCH] boning: use a read-write lock in bonding_show_bonds()

From: Eric Dumazet
Date: Thu Nov 09 2023 - 13:03:27 EST


On Thu, Nov 9, 2023 at 6:55 PM Stephen Hemminger
<stephen@xxxxxxxxxxxxxxxxxx> 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.