Re: [PATCH v7 10/10] s390/vfio_ccw: implement a crw lock

From: Farhan Ali

Date: Mon Jul 27 2026 - 17:41:25 EST



On 7/27/2026 12:22 PM, Eric Farman wrote:
Unlike the channel_program struct, which covers synchronous I/O
submissions and asynchronous interrupts, the CRW region relies
exclusively on asynchronous events coming from hardware.

Implement a lock to manage the list of those payloads, to ensure
they are read cohesively.

Fixes: 3f02cb2fd9d2 ("vfio-ccw: Wire up the CRW irq and CRW region")
Cc:stable@xxxxxxxxxxxxxxx
Cc: Farhan Ali<alifm@xxxxxxxxxxxxx>
Reviewed-by: Matthew Rosato<mjrosato@xxxxxxxxxxxxx>
Signed-off-by: Eric Farman<farman@xxxxxxxxxxxxx>
---
drivers/s390/cio/vfio_ccw_chp.c | 26 ++++++++++++++++----------
drivers/s390/cio/vfio_ccw_drv.c | 6 ++++++
drivers/s390/cio/vfio_ccw_ops.c | 4 ++++
drivers/s390/cio/vfio_ccw_private.h | 4 ++++
4 files changed, 30 insertions(+), 10 deletions(-)

Reviewed-by: Farhan Ali<alifm@xxxxxxxxxxxxx>