Re: [PATCH 5/9] vhost-scsi: log control queue write descriptors

2025-02-11 Thread Mike Christie
On 2/7/25 12:41 PM, Dongli Zhang wrote: > @@ -378,6 +384,11 @@ static void vhost_scsi_release_tmf_res(struct > vhost_scsi_tmf *tmf) > { > struct vhost_scsi_inflight *inflight = tmf->inflight; > > + if (tmf->tmf_log_num) { > + kfree(tmf->tmf_log); > + tmf->tmf_l

[PATCH 5/9] vhost-scsi: log control queue write descriptors

2025-02-07 Thread Dongli Zhang
Log write descriptors for the control queue, leveraging vhost_scsi_get_desc() and vhost_get_vq_desc() to retrieve the array of write descriptors to obtain the log buffer. For Task Management Requests, similar to the I/O queue, store the log buffer during the submission path and log it in the compl