From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8F27C43334 for ; Tue, 14 Jun 2022 14:37:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235379AbiFNOhT (ORCPT ); Tue, 14 Jun 2022 10:37:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231584AbiFNOhS (ORCPT ); Tue, 14 Jun 2022 10:37:18 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3B683BF92 for ; Tue, 14 Jun 2022 07:37:17 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id v14so11582821wra.5 for ; Tue, 14 Jun 2022 07:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FtwqEhPzT3nHMQBDGkRoV01F2A3n7O/yvr9Y5995Vdg=; b=iTTyD5Nmxt+1d3T4z8tihEM1OaXHSotP6JShSZd22MmXvL/p2NPhMW9OUoHbFyodAK xNfW2szfiZx04CMsc23KjH2NVPTJZYmul4yZKNh73uhQKu7k5e26z8iqMvmIUFnrgGxt HvAh1pTS16Sy7HSJxG0YuZGsjY2b99J+E55xPDLu4CGrIIqyBV2hW4FN7xsk6iO9SrtG EIUWn/MIRuACeoMJOjTZPGei+busDbtkCp7oTTVH605qZjP2WeFpg6JeXfY0daQcj3Dr pWLqqFyn7y/kZbJmLXqsSOQqRj/iZHCS+XgOu9AFEuWmN5FXWeKlie4Z8gyGW+Mkod8N B3Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FtwqEhPzT3nHMQBDGkRoV01F2A3n7O/yvr9Y5995Vdg=; b=468uTKV7l6hunqx0dkyDapC+vYp/imrvcnN4VE49S+W1kQCbZLyR3Y387/r7tsKsJf kZLD8xK/z9S+5MqCpSHKuzU4k185NS+eM+wJthBG3i1apdVsw6nHntQfOfyQ4L3uzOkg iD1WsipvfFUsfW3dsu5zqnypelue1rBgFX3jyhfl+CxcOAvw70GzfYm/sTrrC3cNVenP kcZ0TYqV11nraKlpCg8cpoZ4UeAYtNUhneh8lsqH5piiPO9ABuzVY49yXmLSqqZ1dBKd n8hGuQQCu7noR0wthf9/W3ZgsE4iwvvqRWp/xAKqkUz8SSrRqaIh/12Q+NinqNL0Ktyl Q5/w== X-Gm-Message-State: AJIora9Js5PVFbdZfMzvfEsxIdH0izuZwu9XIGeNQNWQDyM8s8A3VCwu HOPuC2CO0NcdBZ4VPBPVPKbomvAF13AGkQ== X-Google-Smtp-Source: AGRyM1sTzDvV69HNnS87EyeucAc6VdBuzTZjGVqHpYV0MdBARPkmva8IKLHMFK9xklBjA917a0ci7A== X-Received: by 2002:a5d:6c62:0:b0:218:3e13:4b17 with SMTP id r2-20020a5d6c62000000b002183e134b17mr5129120wrz.673.1655217436120; Tue, 14 Jun 2022 07:37:16 -0700 (PDT) Received: from 127.0.0.1localhost (188.28.125.106.threembb.co.uk. [188.28.125.106]) by smtp.gmail.com with ESMTPSA id f14-20020a5d58ee000000b0020fc6590a12sm12169254wrd.41.2022.06.14.07.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 07:37:15 -0700 (PDT) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: Jens Axboe , asml.silence@gmail.com Subject: [PATCH liburing 1/3] io_uring: update headers with IORING_SETUP_SINGLE_ISSUER Date: Tue, 14 Jun 2022 15:36:31 +0100 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Signed-off-by: Pavel Begunkov --- src/include/liburing/io_uring.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h index 15d9fbd..ee6ccc9 100644 --- a/src/include/liburing/io_uring.h +++ b/src/include/liburing/io_uring.h @@ -137,9 +137,12 @@ enum { * IORING_SQ_TASKRUN in the sq ring flags. Not valid with COOP_TASKRUN. */ #define IORING_SETUP_TASKRUN_FLAG (1U << 9) - #define IORING_SETUP_SQE128 (1U << 10) /* SQEs are 128 byte */ #define IORING_SETUP_CQE32 (1U << 11) /* CQEs are 32 byte */ +/* + * Only one task is allowed to submit requests + */ +#define IORING_SETUP_SINGLE_ISSUER (1U << 12) enum io_uring_op { IORING_OP_NOP, -- 2.36.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47EE9C43334 for ; Wed, 15 Jun 2022 10:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238827AbiFOKFp (ORCPT ); Wed, 15 Jun 2022 06:05:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238275AbiFOKFo (ORCPT ); Wed, 15 Jun 2022 06:05:44 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87DC3BF8D for ; Wed, 15 Jun 2022 03:05:43 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id k19so14638854wrd.8 for ; Wed, 15 Jun 2022 03:05:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FtwqEhPzT3nHMQBDGkRoV01F2A3n7O/yvr9Y5995Vdg=; b=d60XiiZNGLDTm0KeH2p+vs/fm1TtkyY4sRW0+eNTjXE4VANEquA/Zq0AUquepd4tk5 K+chIApUWSKQEQ0wdIpYwjrVTPN+Mj6VIymL1ERnDkZC0LfCiOcU8jpOLQZXfcZrqh4C NgUXNktmoEPz8DSefuOpiSyFj6RQBLdIL32UbLPankWuZTR60pGTqq/XU++NwjNdIlv2 T30GQUpdx/KX/IpYaB43c3A2EULLVyBXr23RLPtasOfuuGU/MwSzl3s7SMmFDFz2PT3T fGhGVIukeo0wSR2q9i7gcl4+ms1G/h1GOK1oPOnPLMPovP6/NkZs6K6lz//B3+evoWk2 Prbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FtwqEhPzT3nHMQBDGkRoV01F2A3n7O/yvr9Y5995Vdg=; b=gBKrHg814SqXdqfsOSl6heKj5OAUtcXz9KeNq1rmtcBSmBc3+NAxW6Tj7bmZUw2eWM JhSbEneKVvsp4IRgEndSflAAY5Glb41uN1+C3aNxwNghropvFyXDi/E+cTnZmL5Bi2+F iYxnQ1YnY3+n8J0GZQKLwrnahohXEAlSQQZgJH1KqKsxxwwWDR83ahVM6Pqla+YdG68Z hu+5pOMZiQhLPmvQ1RxS58hSBB5Eo3Yg2h5bobjEYjV9egQ8npFE1hTWwBVlP4znBPH/ xxGOhiH9CRiwe2W2pW6Ei+tS8JmWrVPi250y/7d0L5ssbxmSk7fGVcf2PYcsyJYHX63f fi5Q== X-Gm-Message-State: AJIora/axM6fi2p0jaQOLOKGYigwCt8UCVJv/M8fY+6rMVw9kljV1Zed lDggiqwyo4nBFUN6scpHbEKAFvX+zCF87g== X-Google-Smtp-Source: AGRyM1uWA1AWhX5dax8wr+zA6MpvQ24dke2A12ZoC4OcUqyWrv8Ew1wJlIgFhCaaezxgb6KPmCLl+g== X-Received: by 2002:adf:e902:0:b0:213:a337:92ae with SMTP id f2-20020adfe902000000b00213a33792aemr9239583wrm.84.1655287542212; Wed, 15 Jun 2022 03:05:42 -0700 (PDT) Received: from 127.0.0.1localhost (188.28.125.106.threembb.co.uk. [188.28.125.106]) by smtp.gmail.com with ESMTPSA id w5-20020a5d6805000000b002119c1a03e4sm14074984wru.31.2022.06.15.03.05.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 03:05:41 -0700 (PDT) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: Jens Axboe , asml.silence@gmail.com Subject: [PATCH liburing 1/3] io_uring: update headers with IORING_SETUP_SINGLE_ISSUER Date: Wed, 15 Jun 2022 11:05:10 +0100 Message-ID: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Message-ID: <20220615100510.LNqwHXvM_cTbDmZG3yYy0n4ycAEhse8sUUPQeaPoBwM@z> Signed-off-by: Pavel Begunkov --- src/include/liburing/io_uring.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h index 15d9fbd..ee6ccc9 100644 --- a/src/include/liburing/io_uring.h +++ b/src/include/liburing/io_uring.h @@ -137,9 +137,12 @@ enum { * IORING_SQ_TASKRUN in the sq ring flags. Not valid with COOP_TASKRUN. */ #define IORING_SETUP_TASKRUN_FLAG (1U << 9) - #define IORING_SETUP_SQE128 (1U << 10) /* SQEs are 128 byte */ #define IORING_SETUP_CQE32 (1U << 11) /* CQEs are 32 byte */ +/* + * Only one task is allowed to submit requests + */ +#define IORING_SETUP_SINGLE_ISSUER (1U << 12) enum io_uring_op { IORING_OP_NOP, -- 2.36.1