Alberto,
Thanks for reviewing the patch.
On Thu 20 Oct 2016 04:14:23 PM CEST, Pradeep Jagadeesh wrote:
+static void fsdev_throttle_schedule_next_request(FsThrottle *fst, bool
is_write)
+{
+bool must_wait;
+
+if (qemu_co_queue_empty(&fst->throttled_reqs[is_write])) {
+return;
+
On Fri 21 Oct 2016 05:02:29 PM CEST, Alberto Garcia wrote:
>> +void fsdev_throttle_request(FsThrottle *fst, bool is_write,
>> +struct iovec *iov, int iovcnt)
>
> First, mark the function as running in a coroutine context:
>
> void coroutine_fn fsdev_throttle_request(FsTh
On Thu 20 Oct 2016 04:14:23 PM CEST, Pradeep Jagadeesh wrote:
> +static void fsdev_throttle_schedule_next_request(FsThrottle *fst, bool
> is_write)
> +{
> +bool must_wait;
> +
> +if (qemu_co_queue_empty(&fst->throttled_reqs[is_write])) {
> +return;
> +}
> +must_wait = fsdev
Signed-off-by: Pradeep Jagadeesh
---
fsdev/Makefile.objs | 1 +
fsdev/file-op-9p.h | 3 +
fsdev/qemu-fsdev-opts.c | 76
fsdev/qemu-fsdev-throttle.c | 166
fsdev/qemu-fsdev-throttle.h | 37 ++
hw/9