Virtuozzo QEMU development (svt-core@virtuozzo.com)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: "Denis V. Lunev" <den@openvz.org>, andrey.drobyshev@virtuozzo.com
Cc: den@openvz.org, svt-core@virtuozzo.com
Subject: Re: [PATCH hci-8.1 1/1] virtio-scsi: fix hot-plug event racing device realize #VSTOR-151351
Date: Mon, 26 Oct 2026 11:14:17 +0000	[thread overview]
Message-ID: <010701a177eb13a7-dba38707-7ebf-4ae9-ba24-075ac65bad48-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261026111134.145823-2-den@openvz.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] virtio-scsi: commit subject carries downstream tracker tag #VSTOR-151351
--

commit 6ce8922336ce923544c647be9bf402727f9af695
Author: Denis V. Lunev <den@openvz.org>

virtio-scsi: fix hot-plug event racing device realize #VSTOR-151351

This commit moves the TRANSPORT_RESET/RESCAN event and the REPORTED LUNS
CHANGED unit attention out of virtio_scsi_hotplug() and into a main-loop
bottom half. The bottom half runs after the device is realized, so the
guest can reach the device when it scans. The bottom half takes a
reference on the SCSIDevice and re-checks that the device is still
realized before pushing the event.

> virtio-scsi: fix hot-plug event racing device realize #VSTOR-151351

[Severity: Low]
This isn't a bug, but the subject line carries a downstream tracker tag,
"#VSTOR-151351". It is a Virtuozzo bug-tracker ID and doesn't follow the
usual "subsystem: summary" subject form. The patch is Cc'd to
qemu-stable, so the tag would also be carried into stable trees.

Could the tag be dropped from the subject, or moved into the body or a
trailer?

> diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
> --- a/hw/scsi/virtio-scsi.c
> +++ b/hw/scsi/virtio-scsi.c

[ ... ]

> @@ -1163,17 +1186,10 @@ static void virtio_scsi_hotplug(HotplugHandler *hotplug_dev, DeviceState *dev,
>      }
>  
>      if (virtio_vdev_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) {
> -        VirtIOSCSIEventInfo info = {
[ ... ]
> +        /* The request path ignores @sd until it is realized, so notify after */
> +        object_ref(OBJECT(sd));
> +        aio_bh_schedule_oneshot(qemu_get_aio_context(),
> +                                virtio_scsi_hotplug_notify_bh, sd);
>      }
>  }

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261026111113.145378-1-den@openvz.org?part=1

  reply	other threads:[~2026-10-26 11:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 11:11 [PATCH hci-8.1 0/1] virtio-scsi: fix hot-plugged disk invisible in the guest #VSTOR-151351 Denis V. Lunev
2026-10-26 11:11 ` [PATCH hci-8.1 1/1] virtio-scsi: fix hot-plug event racing device realize #VSTOR-151351 Denis V. Lunev
2026-10-26 11:14   ` no-reply [this message]
2026-10-26 11:29   ` Andrey Drobyshev

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=010701a177eb13a7-dba38707-7ebf-4ae9-ba24-075ac65bad48-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=andrey.drobyshev@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=svt-core@virtuozzo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox