All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] vhost/scsi: Respond to control queue operations
@ 2018-12-04  0:48 Bijan Mottahedeh
  0 siblings, 0 replies; only message in thread
From: Bijan Mottahedeh @ 2018-12-04  0:48 UTC (permalink / raw)
  To: target-devel

v1 -> v2:

- Use copy_to_iter() to send control queue response

This patch series causes vhost-scsi control queue TMF requests to be
explicitly rejected rather than implicitly ignored in order to prevent
a guest virito-scsi driver to wait indefinitely for a response to a SCSI
TMF request.

In addition, control queue address notification operations
(VIRTIO_SCSI_T_AN_*) get an effective no-op response.

Patch 1/4 implements a control queue handler modeled after the existing
request queue handler.  There is no commonality between the two handlers.

Patch 2/4 factors out the common processing code from the control queue
handler into separate routines.

Patch 3/4 modifies the request handler to use the common processing routines.  

Patch 4/4 uses copy_to_iter() to send back control queue responses.

Bijan Mottahedeh (4):
  vhost/scsi: Respond to control queue operations
  vhost/scsi: Extract common handling code from control queue handler
  vhost/scsi: Use common handling code in request queue handler
  vhost/scsi: Use copy_to_iter() to send control queue response

 drivers/vhost/scsi.c | 426 +++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 330 insertions(+), 96 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-04  0:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04  0:48 [PATCH v2 0/4] vhost/scsi: Respond to control queue operations Bijan Mottahedeh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.