Stefan Hajnoczi
2020-Dec-02 14:48 UTC
[PATCH 1/1 V2] vhost scsi: fix lun reset completion handling
On Wed, Nov 18, 2020 at 10:27:37AM -0600, Mike Christie wrote:> vhost scsi owns the scsi se_cmd but lio frees the se_cmd->se_tmr > before calling release_cmd, so while with normal cmd completion we > can access the se_cmd from the vhost work, we can't do the same with > se_cmd->se_tmr. This has us copy the tmf response in > vhost_scsi_queue_tm_rsp to our internal vhost-scsi tmf struct for > when it gets sent to the guest from our worker thread. > > Fixes: Fixes: efd838fec17b ("vhost scsi: Add support for LUN resets.") > Signed-off-by: Mike Christie <michael.christie at oracle.com> > Acked-by: Stefan Hajnoczi <stefanha at redhat.com> > --- > > V2: > - Added fixes line. > > drivers/vhost/scsi.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)Acked-by: Stefan Hajnoczi <stefanha at redhat.com> This will go through Michael Tsirkin or Martin K. Petersen's tree. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: not available URL: <http://lists.linuxfoundation.org/pipermail/virtualization/attachments/20201202/89dd0914/attachment.sig>