[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 7/7] virtio-scsi: use scsi_device_get
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v2 7/7] virtio-scsi: use scsi_device_get |
Date: |
Wed, 27 May 2020 16:50:16 +0100 |
On Mon, May 11, 2020 at 07:09:51PM +0300, Maxim Levitsky wrote:
> This will help us to avoid the scsi device disappearing
> after we took a reference to it.
>
> It doesn't by itself forbid case when we try to access
> an unrealized device
>
> Suggested-by: Stefan Hajnoczi <address@hidden>
> Signed-off-by: Maxim Levitsky <address@hidden>
> ---
> hw/scsi/virtio-scsi.c | 23 +++++++++++++++--------
> 1 file changed, 15 insertions(+), 8 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- [PATCH v2 3/7] device-core: use RCU for list of childs of a bus, (continued)
- [PATCH v2 3/7] device-core: use RCU for list of childs of a bus, Maxim Levitsky, 2020/05/11
- [PATCH v2 4/7] device-core: use atomic_set on .realized property, Maxim Levitsky, 2020/05/11
- [PATCH v2 5/7] virtio-scsi: don't touch scsi devices that are not yet realized or about to be un-realized, Maxim Levitsky, 2020/05/11
- [PATCH v2 6/7] scsi: Add scsi_device_get, Maxim Levitsky, 2020/05/11
- [PATCH v2 7/7] virtio-scsi: use scsi_device_get, Maxim Levitsky, 2020/05/11
- Re: [PATCH v2 0/7] RFC/WIP: Fix scsi devices plug/unplug races w.r.t virtio-scsi iothread, no-reply, 2020/05/11
- Re: [PATCH v2 0/7] RFC/WIP: Fix scsi devices plug/unplug races w.r.t virtio-scsi iothread, no-reply, 2020/05/11