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

2020-07-09 Thread Maxim Levitsky
On Wed, 2020-05-27 at 16:27 +0100, Stefan Hajnoczi wrote: > On Mon, May 11, 2020 at 07:09:50PM +0300, Maxim Levitsky wrote: > > +/* > > + * This function works like scsi_device_get but doesn't take a refernce > > s/refernce/reference/ > > > + * to the returned object. Intended for legacy code >

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

2020-05-27 Thread Stefan Hajnoczi
On Mon, May 11, 2020 at 07:09:50PM +0300, Maxim Levitsky wrote: > +/* > + * This function works like scsi_device_get but doesn't take a refernce s/refernce/reference/ > + * to the returned object. Intended for legacy code The following explains this in more detail. It's not necessarily legacy co

[PATCH v2 6/7] scsi: Add scsi_device_get

2020-05-11 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