[PATCH v2] examples/vhost: fix hang on exit

David Marchand david.marchand at redhat.com
Mon Nov 2 15:40:57 CET 2026


On Thu, 29 Oct 2026 at 17:57, Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> destroy_device() waits for the worker lcore to ack device removal.
> Since the signal handler rework, the workers exit before the vhost
> drivers are unregistered, so the destroy callback spins forever.
>
> Maing thread now blocks SIGINT and SIGTERM and uses sigwait
> to wait for one of these signals. Then unregisters and tells
> worker threads to stop.
>
> Bugzilla ID: 2071
> Fixes: 5ffa8fafcbd3 ("examples/vhost: make signal handler safe")
> Cc: stable at dpdk.org
>
> Reported-by: Yu Jiang <yux.jiang at intel.com>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> Tested-by: Yu Jiang <yux.jiang at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the stable mailing list