# Re: \[PATCH 8/9\] vhost: add vhost\_dev pointer to vhost\_work

- From: Stefan Hajnoczi \<stefanha@redhat.com\>
- Date: 2021-06-03 14:32:17 
- List: linux-scsi
- Page: https://ratatoskr.run/linux-scsi/2021/06/6746151
- Thread: https://ratatoskr.run/target-devel/2021/05/6745917/t.md

```text
On Tue, May 25, 2021 at 01:05:59PM -0500, Mike Christie wrote:
> The next patch allows a vhost_worker to handle different devices. To
> prepare for that, this patch adds a pointer to the device on the work so
> we can get to the different mms in the vhost_worker thread.
> 
> Signed-off-by: Mike Christie <michael.christie@oracle.com>
> ---
>  drivers/vhost/scsi.c  |  7 ++++---
>  drivers/vhost/vhost.c | 24 ++++++++++++++----------
>  drivers/vhost/vhost.h |  4 +++-
>  drivers/vhost/vsock.c |  3 ++-
>  4 files changed, 23 insertions(+), 15 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-scsi/2021/06/6746151/attachment/0) (application/pgp-signature, 488 bytes)
