[ovs-build] Passed: istokes/ovs#862 (pmd_deadlock - 649aadd)

Travis CI builds at travis-ci.org
Wed Feb 6 17:29:07 UTC 2019


Build Update for istokes/ovs
-------------------------------------

Build: #862
Status: Passed

Duration: 1 hr, 21 mins, and 4 secs
Commit: 649aadd (pmd_deadlock)
Author: Lilijun
Message: dpif-netdev:fix reload pmd's dead lock

This patch fix the dead lock when using dpdk userspace datapath. The
problem is described as follows:
1) when add or delete port, the main thread will call
reconfigure_datapath() in the function dpif_netdev_run()
2) Here the dp->port_mutex is locked. In dp_netdev_reload_pmd__(), it
will notify each pmd to reload.
3) If pmd is doing packet upcall in fast_path_processing() and try to get
dp->port_mutex in
do_xlate_actions()-->tnl_route_lookup_flow()-->dpif_netdev_port_query_by_name().
Here pmd get lock failed because the main thread has got the lock in
step 2.
4) So the main thread was stuck for waiting pmd to reload done. Now we
got a dead lock.

Here reload_affected_pmds() may not need to lock dp->port_mutex. So we
release the lock temporarily when calling  reload_affected_pmds().

Signed-off-by: Lilijun <jerry.lilijun at huawei.com>

View the changeset: https://github.com/istokes/ovs/compare/fa2353af7ecc^...649aaddce134

View the full build log and details: https://travis-ci.org/istokes/ovs/builds/489614912?utm_medium=notification&utm_source=email

--

You can unsubscribe from build emails from the istokes/ovs repository going to https://travis-ci.org/account/preferences/unsubscribe?repository=16644441&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at https://travis-ci.org/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-build/attachments/20190206/777be1af/attachment-0001.html>


More information about the build mailing list