Skip to content

vhost: vhost-scsi bug fixes

Mike Christie linux-scsi target-devel virtualization 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 7 repliesIn review
  2. v317 patches 24 repliesSuperseded
  3. v216 patches 8 repliesSuperseded

Changes in v4 from the cover letter

- really really fix compile errors
- dropped threading patches so we can figure that out separately.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11vhost scsi: add lun parser helperdrivers/vhost/scsi.c+7 -20 replies
2/11vhost: remove work arg from vhost_work_flushdrivers/vhost/scsi.c drivers/vhost/vhost.c drivers/vhost/vhost.h +1 more+8 -80 replies
3/11vhost net: use goto error handling in opendrivers/vhost/net.c+14 -150 replies
4/11vhost: prep vhost_dev_init users to handle failuresdrivers/vhost/net.c drivers/vhost/scsi.c drivers/vhost/test.c +4 more+45 -240 replies
5/11vhost: move vq iovec allocation to dev init timedrivers/vhost/vhost.c+38 -331 reply
6/11vhost: support delayed vq creationdrivers/vhost/net.c drivers/vhost/scsi.c drivers/vhost/test.c +4 more+66 -366 replies
7/11vhost scsi: support delayed IO vq creationdrivers/vhost/scsi.c+15 -40 replies
8/11vhost scsi: alloc cmds per vq instead of sessiondrivers/vhost/scsi.c+128 -790 replies
9/11vhost scsi: fix cmd completion racedrivers/vhost/scsi.c+15 -270 replies
10/11vhost scsi: Add support for LUN resets.drivers/vhost/scsi.c+134 -130 replies
11/11vhost scsi: remove extra flushesdrivers/vhost/scsi.c+0 -80 replies

Reviews trailers per patch

5 of 11 patches have a Reviewed-by or Acked-by.

PatchPaolo BonziniJason WangChaitanya KulkarniMaurizio Lombardi
1/11R-b A-b
2/11A-b R-b
3/11A-b R-b
4/11A-b
5/11
6/11
7/11
8/11
9/11R-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH 00/11 V4] vhost: vhost-scsi bug fixes

The following patches made over Michael's vhost branch
https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/log/?h=vhost

The patches fix issues with vhost-scsi's 256 cmd limit where if the guest sends more than 256 cmds it will get IO errors, or even if exactly 256 are being sent then we can race and get IO errors. The patches also add LUN RESET support so guests that do not support resetting command timers will not get IO errors and offlined devices when the physical device hits temp issues.

Jason, you reviewed ever non scsi patch but 2 of them. I was not sure if that was an oversight or you were ok with them. I'm sending this out hoping you were ok with them and forgot to reply (or I guess will be ok with them if you just missed them last time).

V4:
- really really fix compile errors
- dropped threading patches so we can figure that out separately.

V3:
- fix compile errors
- fix possible crash where cmd could be freed while adding it to completion list
- fix issue where we added the worker thread to the blk cgroup but the blk IO was submitted by a driver workqueue.

V2:
- fix use before set cpu var errors
- drop vhost_vq_is_setup
- include patches to do a worker thread per scsi IO vq