Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • bpf
  • queue_stack_maps.c
Find file BlameHistoryPermalink
  • Alexei Starovoitov's avatar
    bpf: Remove redundant synchronize_rcu. · bba1dc0b
    Alexei Starovoitov authored Jun 29, 2020
    
    
    bpf_free_used_maps() or close(map_fd) will trigger map_free callback.
    bpf_free_used_maps() is called after bpf prog is no longer executing:
    bpf_prog_put->call_rcu->bpf_prog_free->bpf_free_used_maps.
    Hence there is no need to call synchronize_rcu() to protect map elements.
    
    Note that hash_of_maps and array_of_maps update/delete inner maps via
    sys_bpf() that calls maybe_wait_bpf_programs() and synchronize_rcu().
    
    Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Acked-by: default avatarAndrii Nakryiko <andriin@fb.com>
    Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    Link: https://lore.kernel.org/bpf/20200630043343.53195-2-alexei.starovoitov@gmail.com
    bba1dc0b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7