search for: insert_to_queu

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

Did you mean: insert_to_queue
2010 Apr 07
0
[RFC] vhost-blk implementation (v2)
...handoff_work(&start); + vbio = entry; + } + } + if (!list_empty(queue)) + merge_and_handoff_work(queue); +} + +static uint64_t calculate_len(struct iovec *iov, int nvecs) +{ + uint64_t len = 0; + int i; + + for (i=0; i<nvecs; i++) + len += iov[i].iov_len; + return len; +} + +static void insert_to_queue(struct vhost_blk_io *vbio, + struct list_head *queue) +{ + struct vhost_blk_io *entry; + + list_for_each_entry(entry, queue, list) { + if (entry->sector > vbio->sector) + break; + } + list_add_tail(&vbio->list, &entry->list); +} + +static int handoff_io(struct vhost_blk...
2010 Apr 07
0
[RFC] vhost-blk implementation (v2)
...handoff_work(&start); + vbio = entry; + } + } + if (!list_empty(queue)) + merge_and_handoff_work(queue); +} + +static uint64_t calculate_len(struct iovec *iov, int nvecs) +{ + uint64_t len = 0; + int i; + + for (i=0; i<nvecs; i++) + len += iov[i].iov_len; + return len; +} + +static void insert_to_queue(struct vhost_blk_io *vbio, + struct list_head *queue) +{ + struct vhost_blk_io *entry; + + list_for_each_entry(entry, queue, list) { + if (entry->sector > vbio->sector) + break; + } + list_add_tail(&vbio->list, &entry->list); +} + +static int handoff_io(struct vhost_blk...