[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XENBUS PATCH v2 2/5] Rework autoreboot retry logic



On 09/06/2025 15:00, Tu Dinh wrote:
Since autoreboot takes precedence over reboot prompts, reorganize the
monitor to make TryAutoReboot the reboot entry point instead of
PromptForReboot.

- Prompt for reboot from another thread to avoid blocking main thread.
   Also save the reboot prompt response for later use.
- Add a new context entry RebootRequestedBy, set in PromptForReboot.
- Replace the RebootPending check with an one-time check of
   Context->RebootPrompted at prompt time.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
  src/monitor/monitor.c | 442 +++++++++++++++++++++++++++---------------
  1 file changed, 283 insertions(+), 159 deletions(-)


Reviewed-by: Paul Durrant <paul@xxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.