[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-block] [PATCH v2] aio-posix: remove useless param
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [Qemu-block] [PATCH v2] aio-posix: remove useless parameter |
Date: |
Thu, 14 Jul 2016 13:18:27 +0100 |
User-agent: |
Mutt/1.6.1 (2016-04-27) |
On Wed, Jul 13, 2016 at 10:26:13AM +0800, Cao jin wrote:
> -void aio_context_setup(AioContext *ctx, Error **errp)
> +void aio_context_setup(AioContext *ctx)
> {
> #ifdef CONFIG_EPOLL_CREATE1
> assert(!ctx->epollfd);
> ctx->epollfd = epoll_create1(EPOLL_CLOEXEC);
> if (ctx->epollfd == -1) {
> + fprintf(stderr, "Failed to create epoll instance");
Please include errno so it's clear whether this happened due to EMFILE,
ENOMEM, ENOSYS, etc.
> diff --git a/include/block/aio.h b/include/block/aio.h
> index 88a64ee..0922b69 100644
> --- a/include/block/aio.h
> +++ b/include/block/aio.h
> @@ -439,6 +439,6 @@ static inline bool aio_node_check(AioContext *ctx, bool
> is_external)
> *
> * Initialize the aio context.
> */
> -void aio_context_setup(AioContext *ctx, Error **errp);
> +void aio_context_setup(AioContext *ctx);
This function is also implemented in aio-win32.c so this patch breaks
the build.
signature.asc
Description: PGP signature