All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nihar Panda <niharp@linux.ibm.com>
To: linux-s390@vger.kernel.org, vneethv@linux.ibm.com, oberpar@linux.ibm.com
Cc: linux-kernel@vger.kernel.org, gor@linux.ibm.com,
	agordeev@linux.ibm.com, hca@linux.ibm.com, wintera@linux.ibm.com,
	bblock@linux.ibm.com, nagamani@linux.ibm.com
Subject: [PATCH v2 0/1] s390/qdio: Ensure QDIO_IRQ_STATE_ACTIVE is set only after firmware activates.
Date: Thu, 24 Sep 2026 07:01:35 +0200	[thread overview]
Message-ID: <20260924050217.2583852-1-niharp@linux.ibm.com> (raw)

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


             reply	other threads:[~2026-09-24  5:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  5:01 Nihar Panda [this message]
2026-09-24  5:01 ` [PATCH v5 1/1] s390/qdio: Ensure QDIO_IRQ_STATE_ACTIVE is set only after firmware activates Nihar Panda
2026-09-24  5:10   ` sashiko-bot
2026-09-24  5:41   ` Heiko Carstens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260924050217.2583852-1-niharp@linux.ibm.com \
    --to=niharp@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=bblock@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nagamani@linux.ibm.com \
    --cc=oberpar@linux.ibm.com \
    --cc=vneethv@linux.ibm.com \
    --cc=wintera@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.