search for: vs_inflight

Displaying 6 results from an estimated 6 matches for "vs_inflight".

2013 Mar 11
4
[PATCH] tcm_vhost: Wait for pending requests in vhost_scsi_flush()
...vhost_scsi->dev.mutex */ struct tcm_vhost_tpg **vs_tpg; @@ -91,6 +96,7 @@ struct vhost_scsi { struct mutex vs_events_lock; /* protect vs_events_dropped,events_nr */ bool vs_events_dropped; /* any missed events */ int vs_events_nr; /* num of pending events */ + struct vhost_scsi_inflight *vs_inflight; }; /* Local pointer to allocated TCM configfs fabric module */ @@ -108,6 +114,51 @@ static int iov_num_pages(struct iovec *iov) ((unsigned long)iov->iov_base & PAGE_MASK)) >> PAGE_SHIFT; } +static struct vhost_scsi_inflight *tcm_vhost_alloc_inflight(struct vhost_scsi *...
2013 Mar 11
4
[PATCH] tcm_vhost: Wait for pending requests in vhost_scsi_flush()
...vhost_scsi->dev.mutex */ struct tcm_vhost_tpg **vs_tpg; @@ -91,6 +96,7 @@ struct vhost_scsi { struct mutex vs_events_lock; /* protect vs_events_dropped,events_nr */ bool vs_events_dropped; /* any missed events */ int vs_events_nr; /* num of pending events */ + struct vhost_scsi_inflight *vs_inflight; }; /* Local pointer to allocated TCM configfs fabric module */ @@ -108,6 +114,51 @@ static int iov_num_pages(struct iovec *iov) ((unsigned long)iov->iov_base & PAGE_MASK)) >> PAGE_SHIFT; } +static struct vhost_scsi_inflight *tcm_vhost_alloc_inflight(struct vhost_scsi *...
2013 Mar 22
0
[PATCH] tcm_vhost: Use vs for struct vhost_scsi
...;vs_completion_work, vhost_scsi_complete_cmd_work); - vhost_work_init(&s->vs_event_work, tcm_vhost_evt_work); + vhost_work_init(&vs->vs_completion_work, vhost_scsi_complete_cmd_work); + vhost_work_init(&vs->vs_event_work, tcm_vhost_evt_work); - s->vs_events_nr = 0; - s->vs_inflight[0] = 0; - s->vs_inflight[1] = 0; - spin_lock_init(&s->vs_flush_lock); - init_waitqueue_head(&s->vs_flush_wait); + vs->vs_events_nr = 0; + vs->vs_inflight[0] = 0; + vs->vs_inflight[1] = 0; + spin_lock_init(&vs->vs_flush_lock); + init_waitqueue_head(&vs->vs_flu...
2013 Mar 22
0
[PATCH] tcm_vhost: Use vs for struct vhost_scsi
...;vs_completion_work, vhost_scsi_complete_cmd_work); - vhost_work_init(&s->vs_event_work, tcm_vhost_evt_work); + vhost_work_init(&vs->vs_completion_work, vhost_scsi_complete_cmd_work); + vhost_work_init(&vs->vs_event_work, tcm_vhost_evt_work); - s->vs_events_nr = 0; - s->vs_inflight[0] = 0; - s->vs_inflight[1] = 0; - spin_lock_init(&s->vs_flush_lock); - init_waitqueue_head(&s->vs_flush_wait); + vs->vs_events_nr = 0; + vs->vs_inflight[0] = 0; + vs->vs_inflight[1] = 0; + spin_lock_init(&vs->vs_flush_lock); + init_waitqueue_head(&vs->vs_flu...
2013 Mar 22
4
[PATCH V2 0/3] tcm_vhost pending requests flush
Changes in v2: - Increase/Decrease inflight requests in vhost_scsi_{allocate,free}_cmd and tcm_vhost_{allocate,free}_evt Asias He (3): tcm_vhost: Wait for pending requests in vhost_scsi_flush() tcm_vhost: Wait for pending requests in vhost_scsi_clear_endpoint() tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq drivers/vhost/tcm_vhost.c | 131
2013 Mar 22
4
[PATCH V2 0/3] tcm_vhost pending requests flush
Changes in v2: - Increase/Decrease inflight requests in vhost_scsi_{allocate,free}_cmd and tcm_vhost_{allocate,free}_evt Asias He (3): tcm_vhost: Wait for pending requests in vhost_scsi_flush() tcm_vhost: Wait for pending requests in vhost_scsi_clear_endpoint() tcm_vhost: Fix tv_cmd leak in vhost_scsi_handle_vq drivers/vhost/tcm_vhost.c | 131