search for: virtio_blk_s_read_io

Displaying 4 results from an estimated 4 matches for "virtio_blk_s_read_io".

2011 Aug 18
0
[PATCH] virtio-blk: Update spec with new stats vq
...ut Standard + +\change_inserted 2090695081 1313646835 +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313646940 + +struct virtio_blk_stat { +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651887 + +#define VIRTIO_BLK_S_READ_IO 0 +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651942 + +#define VIRTIO_BLK_S_READ_MERGES 1 +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651940 + +#define VIRTIO_BLK_S_READ_SECTORS 2 +\end_layout + +\begin_layout Plain Layout + +\cha...
2011 Aug 18
0
[PATCH] virtio-blk: Update spec with new stats vq
...ut Standard + +\change_inserted 2090695081 1313646835 +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313646940 + +struct virtio_blk_stat { +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651887 + +#define VIRTIO_BLK_S_READ_IO 0 +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651942 + +#define VIRTIO_BLK_S_READ_MERGES 1 +\end_layout + +\begin_layout Plain Layout + +\change_inserted 2090695081 1313651940 + +#define VIRTIO_BLK_S_READ_SECTORS 2 +\end_layout + +\begin_layout Plain Layout + +\cha...
2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...stats[idx].tag = tag; + vb->stats[idx].val = val; +} + +static void update_blk_stats(struct virtio_blk *vb) +{ + struct hd_struct *p = disk_get_part(vb->disk, 0); + int cpu; + int idx = 0; + + cpu = part_stat_lock(); + part_round_stats(cpu, p); + part_stat_unlock(); + + update_stat(vb, idx++, VIRTIO_BLK_S_READ_IO, + part_stat_read(p, ios[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_MERGES, + part_stat_read(p, merges[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_SECTORS, + part_stat_read(p, sectors[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_TICKS, + jiffies_to_msecs(...
2011 Aug 16
1
[PATCH] virtio-blk: Add stats VQ to collect information about devices
...stats[idx].tag = tag; + vb->stats[idx].val = val; +} + +static void update_blk_stats(struct virtio_blk *vb) +{ + struct hd_struct *p = disk_get_part(vb->disk, 0); + int cpu; + int idx = 0; + + cpu = part_stat_lock(); + part_round_stats(cpu, p); + part_stat_unlock(); + + update_stat(vb, idx++, VIRTIO_BLK_S_READ_IO, + part_stat_read(p, ios[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_MERGES, + part_stat_read(p, merges[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_SECTORS, + part_stat_read(p, sectors[READ])); + update_stat(vb, idx++, VIRTIO_BLK_S_READ_TICKS, + jiffies_to_msecs(...