Commit b9c89fa
neighbour: Use rcu_dereference() in pneigh_get_{first,next}().
Now pneigh_entry is guaranteed to be alive during the
RCU critical section even without holding tbl->lock.
Let's use rcu_dereference() in pneigh_get_{first,next}().
Note that neigh_seq_start() still holds tbl->lock for the
normal neighbour entry.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 32d5eaa commit b9c89fa
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3309 | 3309 | | |
3310 | 3310 | | |
3311 | 3311 | | |
3312 | | - | |
| 3312 | + | |
3313 | 3313 | | |
3314 | 3314 | | |
3315 | | - | |
| 3315 | + | |
3316 | 3316 | | |
3317 | 3317 | | |
3318 | 3318 | | |
| |||
3330 | 3330 | | |
3331 | 3331 | | |
3332 | 3332 | | |
3333 | | - | |
| 3333 | + | |
3334 | 3334 | | |
3335 | 3335 | | |
3336 | 3336 | | |
3337 | 3337 | | |
3338 | 3338 | | |
3339 | 3339 | | |
3340 | | - | |
| 3340 | + | |
3341 | 3341 | | |
3342 | 3342 | | |
3343 | | - | |
| 3343 | + | |
3344 | 3344 | | |
3345 | 3345 | | |
3346 | 3346 | | |
| |||
0 commit comments