Commit cc03492
neighbour: Annotate access to struct pneigh_entry.{flags,protocol}.
We will convert pneigh readers to RCU, and its flags and protocol
will be read locklessly.
Let's annotate the access to the two fields.
Note that all access to pn->permanent is under RTNL (neigh_add()
and pneigh_ifdown_and_unlock()), so WRITE_ONCE() and READ_ONCE()
are not needed.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent d539d8f commit cc03492
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2044 | 2044 | | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | | - | |
| 2047 | + | |
2048 | 2048 | | |
2049 | 2049 | | |
2050 | | - | |
| 2050 | + | |
2051 | 2051 | | |
2052 | 2052 | | |
2053 | 2053 | | |
| |||
2678 | 2678 | | |
2679 | 2679 | | |
2680 | 2680 | | |
| 2681 | + | |
2681 | 2682 | | |
2682 | 2683 | | |
2683 | 2684 | | |
2684 | 2685 | | |
2685 | 2686 | | |
2686 | | - | |
2687 | | - | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
2688 | 2690 | | |
2689 | 2691 | | |
2690 | 2692 | | |
| |||
2698 | 2700 | | |
2699 | 2701 | | |
2700 | 2702 | | |
2701 | | - | |
| 2703 | + | |
| 2704 | + | |
2702 | 2705 | | |
2703 | 2706 | | |
2704 | 2707 | | |
| |||
0 commit comments