Displaying 6 results from an estimated 6 matches for "vs_flush_wait".
2013 Mar 11
4
[PATCH] tcm_vhost: Wait for pending requests in vhost_scsi_flush()
...ents */
> > > > +
> > > > + /*
> > > > + * vs_inflight[0]/[1] are used to track requests issued
> > > > + * before/during the flush operation
> > > > + */
> > > > + u64 vs_inflight[2];
> > > > + wait_queue_head_t vs_flush_wait; /* wait queue for flush operation */
> > > > + spinlock_t vs_flush_lock; /* lock to protect vs_during_flush */
> > > > + int vs_during_flush; /* flag to indicate if we are in flush operation */
> > > > };
> > > >
> > > > /* Local poin...
2013 Mar 11
4
[PATCH] tcm_vhost: Wait for pending requests in vhost_scsi_flush()
...ents */
> > > > +
> > > > + /*
> > > > + * vs_inflight[0]/[1] are used to track requests issued
> > > > + * before/during the flush operation
> > > > + */
> > > > + u64 vs_inflight[2];
> > > > + wait_queue_head_t vs_flush_wait; /* wait queue for flush operation */
> > > > + spinlock_t vs_flush_lock; /* lock to protect vs_during_flush */
> > > > + int vs_during_flush; /* flag to indicate if we are in flush operation */
> > > > };
> > > >
> > > > /* Local poin...
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
2013 Mar 22
0
[PATCH] tcm_vhost: Use vs for struct vhost_scsi
...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_flush_wait);
- s->vqs[VHOST_SCSI_VQ_CTL].handle_kick = vhost_scsi_ctl_handle_kick;
- s->vqs[VHOST_SCSI_VQ_EVT].handle_kick...
2013 Mar 22
0
[PATCH] tcm_vhost: Use vs for struct vhost_scsi
...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_flush_wait);
- s->vqs[VHOST_SCSI_VQ_CTL].handle_kick = vhost_scsi_ctl_handle_kick;
- s->vqs[VHOST_SCSI_VQ_EVT].handle_kick...