[Devel] [PATCH hci-8.2 2/2] dm-qcow2: arm enospc_timer under event_lock so suspend leaves none behind

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 19 19:26:22 MSK 2026


Applying with these fixes on my side:

- Item 2 of the cover letter reply: added the Fixes: trailer.
- Item 3 of the cover letter reply: "presuspend finds the qio with the
  timer already armed and runs it" -> "presuspend or the armed timer
  resubmits the qio".

On Thu, 19 Nov 2026 00:37:05 +0100, Denis V. Lunev wrote:
> qcow2_set_wants_suspend() sets wants_suspend under the same lock, so
> either presuspend finds the qio with the timer already armed and runs
> it, or the endio sees the flag and its caller completes the request.

When the timer handler is running at that moment,
timer_delete_sync_try() returns -1 and presuspend runs nothing: the
re-armed timer resubmits the qio and the suspend waits for the request.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list