Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
libvirt.19372
b776dfa8-add-shutdown-facility-netserver.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File b776dfa8-add-shutdown-facility-netserver.patch of Package libvirt.19372
commit b776dfa8e881c868dc554c5c245f15c49332ce80 Author: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Date: Thu Jul 23 09:50:25 2020 +0300 rpc: add shutdown facilities to netserver virNetServerClose and virNetServerShutdownWait are used to start net server threads shutdown and wait net server threads to actually finish respectively during net daemon shutdown procedure. Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Index: libvirt-5.1.0/src/rpc/virnetserver.c =================================================================== --- libvirt-5.1.0.orig/src/rpc/virnetserver.c +++ libvirt-5.1.0/src/rpc/virnetserver.c @@ -836,9 +836,17 @@ void virNetServerClose(virNetServerPtr s for (i = 0; i < srv->nclients; i++) virNetServerClientClose(srv->clients[i]); + virThreadPoolStop(srv->workers); + virObjectUnlock(srv); } +void +virNetServerShutdownWait(virNetServerPtr srv) +{ + virThreadPoolDrain(srv->workers); +} + static inline size_t virNetServerTrackPendingAuthLocked(virNetServerPtr srv) { Index: libvirt-5.1.0/src/rpc/virnetserver.h =================================================================== --- libvirt-5.1.0.orig/src/rpc/virnetserver.h +++ libvirt-5.1.0/src/rpc/virnetserver.h @@ -57,6 +57,7 @@ virNetServerPtr virNetServerNewPostExecR ATTRIBUTE_NONNULL(4) ATTRIBUTE_NONNULL(5) ATTRIBUTE_NONNULL(6); void virNetServerClose(virNetServerPtr srv); +void virNetServerShutdownWait(virNetServerPtr srv); virJSONValuePtr virNetServerPreExecRestart(virNetServerPtr srv);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor