Skip to content

scsi: fix issue with Linux guest and unit attention

Stefano Garzarella requested to merge sgarzarella/qemu-kvm-c-9-s:bz2176702 into c9s

Merge Request Required Information

Summary of Changes

This series is the backport of the series just merged upstream: https://lore.kernel.org/qemu-devel/20230712134352.118655-1-sgarzare@redhat.com/

It fixes a problem highlighted by the commit 8cc5583a ("virtio-scsi: Send "REPORTED LUNS CHANGED" sense data upon disk hotplug events").

$ git backport-diff -u upstream/master -r c9s..HEAD
Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch
[down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/3:[----] [--] 'scsi: fetch unit attention when creating the request'
002/3:[----] [--] 'scsi: cleanup scsi_clear_unit_attention()'
003/3:[----] [--] 'scsi: clear unit attention only for REPORT LUNS commands'

Approved Development Ticket

All submissions to CentOS Stream must reference an approved ticket in Red Hat Jira. Please follow the CentOS Stream contribution documentation for how to file this ticket and have it approved.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2176702

Merge request reports