qemu-fsdev-throttle.c (008a51bbb343972dd8cf09126da8c3b87f4e1c96) qemu-fsdev-throttle.c (922a01a013d2270682a188258cbccacfecf8129c)
1/*
2 * Fsdev Throttle
3 *
4 * Copyright (C) 2016 Huawei Technologies Duesseldorf GmbH
5 *
6 * Author: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2 or
9 * (at your option) any later version.
10 *
11 * See the COPYING file in the top-level directory for details.
12 *
13 */
14
15#include "qemu/osdep.h"
16#include "qemu/error-report.h"
17#include "qemu-fsdev-throttle.h"
18#include "qemu/iov.h"
1/*
2 * Fsdev Throttle
3 *
4 * Copyright (C) 2016 Huawei Technologies Duesseldorf GmbH
5 *
6 * Author: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2 or
9 * (at your option) any later version.
10 *
11 * See the COPYING file in the top-level directory for details.
12 *
13 */
14
15#include "qemu/osdep.h"
16#include "qemu/error-report.h"
17#include "qemu-fsdev-throttle.h"
18#include "qemu/iov.h"
19#include "qemu/option.h"
19
20static void fsdev_throttle_read_timer_cb(void *opaque)
21{
22 FsThrottle *fst = opaque;
23 qemu_co_enter_next(&fst->throttled_reqs[false], NULL);
24}
25
26static void fsdev_throttle_write_timer_cb(void *opaque)

--- 92 unchanged lines hidden ---
20
21static void fsdev_throttle_read_timer_cb(void *opaque)
22{
23 FsThrottle *fst = opaque;
24 qemu_co_enter_next(&fst->throttled_reqs[false], NULL);
25}
26
27static void fsdev_throttle_write_timer_cb(void *opaque)

--- 92 unchanged lines hidden ---