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

Jiang, YuX yux.jiang at intel.com
Mon Nov 2 04:10:06 CET 2026


> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Friday, October 30, 2026 2:04 AM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Jiang, YuX <yux.jiang at intel.com>; Maxime Coquelin
> <maxime.coquelin at redhat.com>; Chenbo Xia <chenbox at nvidia.com>;
> Richardson, Bruce <bruce.richardson at intel.com>
> Subject: Re: [PATCH v2] examples/vhost: fix hang on exit
> 
> On Thu, 29 Oct 2026 09:57:29 -0700
> 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>
> 
> This is compile test only, and needs ack from Maxime or submitter.

Tested-by:  Yu Jiang <yux.jiang at intel.com>

Best Regards
Yu Jiang


More information about the stable mailing list