Jens Axboe [off-list ref] writes:
quoted hunk
+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: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>