mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/1] s390/qdio: Ensure QDIO_IRQ_STATE_ACTIVE is set only after firmware activates.
@ 2026-09-24  5:01 Nihar Panda
  2026-09-24  5:01 ` [PATCH v5 1/1] " Nihar Panda
  0 siblings, 1 reply; 3+ messages in thread
From: Nihar Panda @ 2026-09-24  5:01 UTC (permalink / raw)
  To: linux-s390, vneethv, oberpar
  Cc: linux-kernel, gor, agordeev, hca, wintera, bblock, nagamani

Data Race Fix: 
Moved the execution of cio_update_schib() and qdio_set_state() 
under ccwdev_lock.
This prevents a data race on the shared sch->schib structure and ensures 
qdio_set_state() does not overwrite a STOPPED/ERR state when called 
locklessly (as identified by Sashiko AI).

Timeout Optimization: 
Converted the timeout polling loop from a while to a do..while loop. 
This fixes a preemption bug where a thread interruption could trigger 
a false ETIMEDOUT failure before the loop body could execute even once.

Nihar Panda (1):
  s390/qdio: Ensure QDIO_IRQ_STATE_ACTIVE is set only after firmware
    activates.

 arch/s390/include/asm/scsw.h |  4 +--
 drivers/s390/cio/qdio_main.c | 59 +++++++++++++++++++++++++++---------
 2 files changed, 47 insertions(+), 16 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-24  5:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-24  5:01 [PATCH v2 0/1] s390/qdio: Ensure QDIO_IRQ_STATE_ACTIVE is set only after firmware activates Nihar Panda
2026-09-24  5:01 ` [PATCH v5 1/1] " Nihar Panda
2026-09-24  5:41   ` Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®