Re: [PATCH v2 1/3] serial: core: introduce guard(uart_port_lock_check_sysrq_irqsave)

From: Maciej W. Rozycki

Date: Wed Jun 03 2026 - 08:44:13 EST


On Wed, 13 May 2026, Jacques Nilo wrote:

> Add a dedicated guard(uart_port_lock_check_sysrq_irqsave) variant
> whose destructor is the sysrq-aware unlock helper. The lock side is
> identical to uart_port_lock_irqsave -- only the unlock-time behaviour
> differs. Callers that may capture SysRq characters must use
> guard(uart_port_lock_check_sysrq_irqsave); the existing
> guard(uart_port_lock_irqsave) keeps its current plain-unlock semantics
> for the many callers that do not process RX.

Tested-by: Maciej W. Rozycki <macro@xxxxxxxxxxx>

Maciej