diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-10-17 18:31:39 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-10-24 14:03:40 +0000 |
| commit | 3deec3b4afb4c767007eae1eeedbcf3da599395b (patch) | |
| tree | 1096e23e95996513d2a076745f3aad2cbf67d0ce /drivers/fpga/zynq-fpga.c | |
| parent | phonet: Pass net and ifindex to rtm_phonet_notify(). (diff) | |
| download | kernel-3deec3b4afb4c767007eae1eeedbcf3da599395b.tar.gz kernel-3deec3b4afb4c767007eae1eeedbcf3da599395b.zip | |
phonet: Convert phonet_routes.lock to spinlock_t.
route_doit() calls phonet_route_add() or phonet_route_del()
for RTM_NEWROUTE or RTM_DELROUTE, respectively.
Both functions only touch phonet_pernet(dev_net(dev))->routes,
which is currently protected by RTNL and its dedicated mutex,
phonet_routes.lock.
We will convert route_doit() to RCU and cannot use mutex inside RCU.
Let's convert the mutex to spinlock_t.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions
