Re: [Qemu-devel] [PATCH v5 10/12] block/io_uring: adds userspace completion polling

2019-06-17 Thread Maxim Levitsky
On Tue, 2019-06-11 at 10:51 +0100, Stefan Hajnoczi wrote: > On Mon, Jun 10, 2019 at 07:19:03PM +0530, Aarushi Mehta wrote: > > +static bool qemu_luring_poll_cb(void *opaque) > > +{ > > +LuringState *s = opaque; > > +struct io_uring_cqe *cqes; > > + > > +if (io_uring_peek_cqe(>ring, )

Re: [Qemu-devel] [PATCH v5 10/12] block/io_uring: adds userspace completion polling

2019-06-11 Thread Stefan Hajnoczi
On Mon, Jun 10, 2019 at 07:19:03PM +0530, Aarushi Mehta wrote: > +static bool qemu_luring_poll_cb(void *opaque) > +{ > +LuringState *s = opaque; > +struct io_uring_cqe *cqes; > + > +if (io_uring_peek_cqe(>ring, ) == 0) { > +if (!cqes) { > +

[Qemu-devel] [PATCH v5 10/12] block/io_uring: adds userspace completion polling

2019-06-10 Thread Aarushi Mehta
Signed-off-by: Aarushi Mehta --- block/io_uring.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/block/io_uring.c b/block/io_uring.c index 47e027364a..acfaa48151 100644 --- a/block/io_uring.c +++ b/block/io_uring.c @@ -142,6 +142,21 @@ static void