Re: [PATCH v3 6/7] scsi: Add scsi_device_get

2020-08-05 Thread Stefan Hajnoczi
On Wed, Jul 15, 2020 at 06:01:58PM +0300, Maxim Levitsky wrote: > Add scsi_device_get which finds the scsi device > and takes a reference to it. > > Suggested-by: Stefan Hajnoczi > Signed-off-by: Maxim Levitsky > --- > hw/scsi/scsi-bus.c | 31 --- > include/hw/sc

[PATCH v3 6/7] scsi: Add scsi_device_get

2020-07-15 Thread Maxim Levitsky
Add scsi_device_get which finds the scsi device and takes a reference to it. Suggested-by: Stefan Hajnoczi Signed-off-by: Maxim Levitsky --- hw/scsi/scsi-bus.c | 31 --- include/hw/scsi/scsi.h | 2 ++ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git