[ovs-git] [openvswitch/ovs] a187bd: ovn: grab pinctrl_mutex before running pinctrl_han...

Lorenzo Bianconi noreply at github.com
Fri Jun 7 19:59:59 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: a187bd814adc7f560f0d0524889f2a297caa8abd
  Author: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
  Date:   2019-06-07 (Fri, 07 Jun 2019)

  Changed paths:
    M ovn/controller/pinctrl.c

  Log Message:
  ovn: grab pinctrl_mutex before running pinctrl_handle_buffered_packets

pinctrl_handle_buffered_packets can insert new elements in
buffered_packets_map hasmap and it runs concurrently with pinctrl_run
starting from commit 3594ffab6b4b. Fix possible races grabbing
pinctrl_mutex before running pinctrl_handle_buffered_packets

Fixes: 3594ffab6b4b ("ovn-controller: Add a new thread in pinctrl module to handle packet-ins.")
Acked-by: Han Zhou <hzhou8 at ebay.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list