Lines Matching full:inflight

58 	/* Refcount for the inflight reqs */
103 /* Used to track inflight cmd */
104 struct vhost_scsi_inflight *inflight; member
177 * Reference counting for inflight reqs, used for flush operation. At
183 * Indicate current inflight in use, protected by vq->mutex.
219 struct vhost_scsi_inflight *inflight; member
247 struct vhost_scsi_inflight *inflight; in vhost_scsi_done_inflight() local
249 inflight = container_of(kref, struct vhost_scsi_inflight, kref); in vhost_scsi_done_inflight()
250 complete(&inflight->comp); in vhost_scsi_done_inflight()
283 struct vhost_scsi_inflight *inflight; in vhost_scsi_get_inflight() local
287 inflight = &svq->inflights[svq->inflight_idx]; in vhost_scsi_get_inflight()
288 kref_get(&inflight->kref); in vhost_scsi_get_inflight()
290 return inflight; in vhost_scsi_get_inflight()
293 static void vhost_scsi_put_inflight(struct vhost_scsi_inflight *inflight) in vhost_scsi_put_inflight() argument
295 kref_put(&inflight->kref, vhost_scsi_done_inflight); in vhost_scsi_put_inflight()
333 struct vhost_scsi_inflight *inflight = tv_cmd->inflight; in vhost_scsi_release_cmd_res() local
351 vhost_scsi_put_inflight(inflight); in vhost_scsi_release_cmd_res()
356 struct vhost_scsi_inflight *inflight = tmf->inflight; in vhost_scsi_release_tmf_res() local
359 vhost_scsi_put_inflight(inflight); in vhost_scsi_release_tmf_res()
653 cmd->inflight = vhost_scsi_get_inflight(vq); in vhost_scsi_get_cmd()
1349 tmf->inflight = vhost_scsi_get_inflight(vq); in vhost_scsi_handle_tmf()
1567 /* Init new inflight and remember the old inflight */ in vhost_scsi_flush()
1571 * The inflight->kref was initialized to 1. We decrement it here to in vhost_scsi_flush()