From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: [PATCH 05/18] Add io_uring IO interface Date: Mon, 28 Jan 2019 16:53:38 -0500 Message-ID: References: <20190128213538.13486-1-axboe@kernel.dk> <20190128213538.13486-6-axboe@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20190128213538.13486-6-axboe@kernel.dk> (Jens Axboe's message of "Mon, 28 Jan 2019 14:35:25 -0700") Sender: owner-linux-aio@kvack.org To: Jens Axboe Cc: linux-aio@kvack.org, linux-block@vger.kernel.org, linux-man@vger.kernel.org, linux-api@vger.kernel.org, hch@lst.de, avi@scylladb.com List-Id: linux-man@vger.kernel.org Jens Axboe writes: > +static int __io_uring_enter(struct io_ring_ctx *ctx, unsigned to_submit, > + unsigned min_complete, unsigned flags, > + const sigset_t __user *sig, size_t sigsz) > +{ > + int submitted, ret; > + > + submitted = ret = 0; > + if (to_submit) { > + submitted = io_ring_submit(ctx, to_submit); > + if (submitted < 0) > + return submitted; > + } > + if (flags & IORING_ENTER_GETEVENTS) { Do we want to disallow any unsupported flags? -Jeff -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to majordomo@kvack.org. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: aart@kvack.org