aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-trace.h
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2025-07-16 22:08:11 +0000
committerJakub Kicinski <[email protected]>2025-07-17 23:25:20 +0000
commitd63382aea70aa4ecb516126e00930bc8ab5e55ef (patch)
treeda40903dd4ef51b479bb5b79701ed069628fcf81 /drivers/usb/cdns3/cdns3-trace.h
parentneighbour: Split pneigh_lookup(). (diff)
downloadkernel-d63382aea70aa4ecb516126e00930bc8ab5e55ef.tar.gz
kernel-d63382aea70aa4ecb516126e00930bc8ab5e55ef.zip
neighbour: Annotate neigh_table.phash_buckets and pneigh_entry.next with __rcu.
The next patch will free pneigh_entry with call_rcu(). Then, we need to annotate neigh_table.phash_buckets[] and pneigh_entry.next with __rcu. To make the next patch cleaner, let's annotate the fields in advance. Currently, all accesses to the fields are under the neigh table lock, so rcu_dereference_protected() is used with 1 for now, but most of them (except in pneigh_delete() and pneigh_ifdown_and_unlock()) will be replaced with rcu_dereference() and rcu_dereference_check(). Note that pneigh_ifdown_and_unlock() changes pneigh_entry.next to a local list, which is illegal because the RCU iterator could be moved to another list. This part will be fixed in the next patch. Signed-off-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions