Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2120558rwr; Fri, 21 Apr 2023 04:49:53 -0700 (PDT) X-Google-Smtp-Source: AKy350Yp8ULZkwaqJ82uJ5WgOh6yorjwct3DertMgpkSLw2xIx73xwGwP8odjSSeMlAbEacsBN2z X-Received: by 2002:a05:6a20:440d:b0:dd:dfe4:f06a with SMTP id ce13-20020a056a20440d00b000dddfe4f06amr5497484pzb.3.1682077793486; Fri, 21 Apr 2023 04:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682077793; cv=none; d=google.com; s=arc-20160816; b=ZnMV/zYcbz+XszQ3yB4IIotLou+AdjrOW5XSw5Tq4KPhCi6wu+ZOP2xuhhzptkS5+f tWgbZh8C/PqjQPuy8LsG8sheCaojRAEGybrYtT8RSEQKYbdcueA+/CwGNtfUPwub+HZU 8R3c++3zgoTHOzUodrnvW44lVQzgScb4P72E3p1V6S+z+/qJgzx+HL1DPWtgouG1hNoh CLCrqcM4xMYnhB43mLzSXW3BnNKXiup1Rz4cmA2lNsSA0cRKFqVKJgIL6b6THgGwf06Y sdOJ6yBsd6pz/k9a01iHum+mre3PaCU6q983AcS9i8HKxG4Vsa/eRN51QbygqcJdrY3E q3tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=drtJY3bzG70qwaMh3FrpvU2+Y1e1A4ULSdaEvu4w4Po=; b=ywZg9uwWqCabE02Upd8v4KfUUsnqsxZLSHAJuAm7YqHuGGdmRXLKIA2kvfuyxDkaOc ciSO3Qn+aUunigQ2Hm/ltjJqshk6bd/8ABuZL2O8mnFG8VjQJ+hBQnSBHMSA3NDW5tPo G5vLIFTiVODRDD6KnySsiSfpnnKCbQ24/L5sInmL8xAnqJWmSselpiLGEa8JYhB49ZMX rqipe7i7w/YBkirFnIyfFKzDG3jnKTqa1GxqMQ44J3U5qV3CDj9iteXrXE9y+7dKZ/FE acUQhwGnx0yVujCDPtlz26jtoUtveGW2cnulPbtHEfB2X6R8OQA4g1t6JyuQEaCMOVrl Ajtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020aa78f34000000b0063b7645b97asi4084645pfr.380.2023.04.21.04.49.42; Fri, 21 Apr 2023 04:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231451AbjDULrA (ORCPT + 99 others); Fri, 21 Apr 2023 07:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjDULq7 (ORCPT ); Fri, 21 Apr 2023 07:46:59 -0400 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D37C3; Fri, 21 Apr 2023 04:46:57 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-2f939bea9ebso1501474f8f.0; Fri, 21 Apr 2023 04:46:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682077615; x=1684669615; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=drtJY3bzG70qwaMh3FrpvU2+Y1e1A4ULSdaEvu4w4Po=; b=EOJ7JbXW2POm4MAEP8Q3Dk/oMUsLe+/FZDvgiRJR2LZQX8Lw7fuGv33rsokdl6Tdlk 6jIz+TwxmvxlQPk6iZt7DcWx27gRU+MCBX9KVclzIgLLNMPS0zdZG0NJrg1aeO+AjeTl Dl0mVL/FXkioozVBOTllzspH/LHqL9H9WIco1kOyHsufCjJe2z13CiL/LZ6Wb20in05K SJ0ppVIru5vtyUAhnNyrtoi0Vu9xBmNxp66rMn0R94QxdRL38qxs99fv5zxATOmuybMt 68sP6fLCj1rZ01M9wBhMT3IlxDFG8gPMZWaCwydvWNZmniUHcFt6UvgGMnojnkBa7+Z5 V92w== X-Gm-Message-State: AAQBX9dUvJsq9yFg4vcCCK4ZQwflcEr13hVK8smlCq5ouKteZqvbZh96 9eJ21m6Sso4DA/Lxovfv+8Hp3uP8nm/2QQ== X-Received: by 2002:a5d:5902:0:b0:2fd:1a81:6b0e with SMTP id v2-20020a5d5902000000b002fd1a816b0emr3474376wrd.33.1682077615300; Fri, 21 Apr 2023 04:46:55 -0700 (PDT) Received: from localhost (fwdproxy-cln-019.fbsv.net. [2a03:2880:31ff:13::face:b00c]) by smtp.gmail.com with ESMTPSA id s13-20020adfeb0d000000b002fb6a79dea0sm4298485wrn.7.2023.04.21.04.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 04:46:54 -0700 (PDT) From: Breno Leitao To: io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, asml.silence@gmail.com, axboe@kernel.dk Cc: leit@fb.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, sagi@grimberg.me, hch@lst.de, kbusch@kernel.org, ming.lei@redhat.com Subject: [PATCH v2 0/3] io_uring: Pass the whole sqe to commands Date: Fri, 21 Apr 2023 04:44:37 -0700 Message-Id: <20230421114440.3343473-1-leitao@debian.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These three patches prepare for the sock support in the io_uring cmd, as described in the following RFC: https://lore.kernel.org/lkml/20230406144330.1932798-1-leitao@debian.org/ Since the support linked above depends on other refactors, such as the sock ioctl() sock refactor[1], I would like to start integrating patches that have consensus and can bring value right now. This will also reduce the patchset size later. Regarding to these three patches, they are simple changes that turn io_uring cmd subsystem more flexible (by passing the whole SQE to the command), and cleaning up an unnecessary compile check. These patches were tested by creating a file system and mounting an NVME disk using ubdsrv/ublkb0. [1] ZD6Zw1GAZR28++3v@gmail.com/">https://lore.kernel.org/lkml/ZD6Zw1GAZR28++3v@gmail.com/ V1 -> V2 : * Create a helper to return the size of the SQE Breno Leitao (3): io_uring: Create a helper to return the SQE size io_uring: Pass whole sqe to commands io_uring: Remove unnecessary BUILD_BUG_ON drivers/block/ublk_drv.c | 24 ++++++++++++------------ drivers/nvme/host/ioctl.c | 2 +- include/linux/io_uring.h | 2 +- io_uring/io_uring.h | 3 +++ io_uring/opdef.c | 2 +- io_uring/uring_cmd.c | 13 ++++--------- io_uring/uring_cmd.h | 8 -------- 7 files changed, 22 insertions(+), 32 deletions(-) -- 2.34.1