search for: flush_lock

Displaying 2 results from an estimated 2 matches for "flush_lock".

2012 Dec 02
3
[PATCH] vhost-blk: Add vhost-blk support v6
...+ sector_t sector; + int write; + u16 head; + long len; +}; + +struct vhost_blk { + wait_queue_head_t flush_wait; + struct iovec iov[UIO_MAXIOV]; + struct vhost_blk_req *reqs; + struct vhost_virtqueue vq; + struct llist_head llhead; + atomic_t req_inflight[2]; + struct vhost_work work; + spinlock_t flush_lock; + struct vhost_dev dev; + int during_flush; + u16 reqs_nr; + int index; +}; + +static int move_iovec(struct iovec *from, struct iovec *to, + size_t len, int iov_count) +{ + int seg = 0; + size_t size; + + while (len && seg < iov_count) { + if (from->iov_len == 0) { + ++from...
2012 Dec 02
3
[PATCH] vhost-blk: Add vhost-blk support v6
...+ sector_t sector; + int write; + u16 head; + long len; +}; + +struct vhost_blk { + wait_queue_head_t flush_wait; + struct iovec iov[UIO_MAXIOV]; + struct vhost_blk_req *reqs; + struct vhost_virtqueue vq; + struct llist_head llhead; + atomic_t req_inflight[2]; + struct vhost_work work; + spinlock_t flush_lock; + struct vhost_dev dev; + int during_flush; + u16 reqs_nr; + int index; +}; + +static int move_iovec(struct iovec *from, struct iovec *to, + size_t len, int iov_count) +{ + int seg = 0; + size_t size; + + while (len && seg < iov_count) { + if (from->iov_len == 0) { + ++from...