From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f225.google.com (mail-qt1-f225.google.com [209.85.160.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55CA8E555 for ; Fri, 13 Feb 2026 03:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.225 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770952891; cv=none; b=ezz+YDeDLMHBqpgmpz7Jz6fBMonpCTBVfo04BrYUoRZK1dXTrMihhBPXOEUSZW0NkOi9neM4rkswbziVHcpXzS0LmMg5vvDx/EQ7IW0qFJKI+kyJHJ2Sutjlrj4cQ5mfoyTadFFOuSq3nDp+6Lo/ZTMNOXZdxXqVo1XsNmBaB6s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770952891; c=relaxed/simple; bh=S7mkoOuNfW+vVsSc5zwR60MqIzi4Lad6BXAK3HBrZUg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fWDXJnclhwaM6avXCEwrIq3mRYtT3g60+ijbyb9U9X0xUf80K83rN0V+xUYKIeAzfg3JKWx3rbgKHHMZAmEmHZCr+VAp506E9HbzQLA/S3YHrvAmrw1MCAW5ZNx2KY3EP0MmyQYKHlY1UJeFMgvHK4cZ8JkK/UUrztmK2Ddop24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=Na0mcF3e; arc=none smtp.client-ip=209.85.160.225 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="Na0mcF3e" Received: by mail-qt1-f225.google.com with SMTP id d75a77b69052e-506a65d8698so72601cf.3 for ; Thu, 12 Feb 2026 19:21:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1770952888; x=1771557688; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hNjsk/uff9pARkaRzlte1yX2NQYGh3GjyfK1pUQCaAc=; b=Na0mcF3eogCjA9l/2ryztu2mJL1I+i5G4l3fGZkWFdOhxbzqU1Qbu3itnGSKjznG8Z o6ncFN0Ycx9BBOVc7SXYVa0QG0G971zPy5eYx7NfAZBZV9q8Iq7/qCuh7AaQ85vI5M8q HPkElqIuHig/BdvALg8CZ0Tdx+ynjftyVAtI4QQ1edULYa8Qi04qch6fz1qC6weQjbns U4UowFAH8e7xWqMwDbG//N3pRf6CyMPCaSrP3bTkTUHTDDVaNzsAEjDuevr87peA4ItQ 9AhN59uVthxlJXLkp0kBHTesEryEkMhTIxp7LFyifQq+s7smdg1rprbT4Ac4iC0wCAWz QeSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770952888; x=1771557688; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hNjsk/uff9pARkaRzlte1yX2NQYGh3GjyfK1pUQCaAc=; b=RPoH+gpEcQ7T/r3rqmUr7o5m9c96tED2NGGovJupVmF5nEx1ej5GKyp2thg8cfbFCj lCzDe6HCdeXqSA5/9DAd6++gSJPYF1CXUG0FP9pSVtCrbkd5RrMyD2cjDIxP/kQb9yGi X0yDB1uMMAkK+PURPZyRCsvbZvN1X5Os1l0Opa3zW3T9XzYPTdelIeOl2Ub4g1UZvqph T/ji9PD1oiUAGGhyYaikmne/tpoOgGCpQm1m2ltBbtdeoHVKUw2+gsWVVj+Dqp8ks+Qq KKC6hSCEZgwBIzQbtHR16wWeEVh9CQOMAolcOOAEQIEgLRxA14Sc4ovrH5Xj59TvOBkC vL6Q== X-Forwarded-Encrypted: i=1; AJvYcCVJ8LQg11c44ipLwdHQbqifJBeQX37DatjxuSHs2m5KXLzTijSTkgRIPuDXjD5SkqnkqUJKixuSdPJWDz0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz6DQMpPYL+Gk94tHv3AjvFgLpN5snIQOEj6uAY75VU4ifQyvf/ CT/b20rQxxDgD3LqNUgPsyxSy3OU+Di4tCl0j30CMXjrXUi9y+MwEf4Yl9kDCzkmm4q3h5HL8zL hEyPnIamuZNwfEtP+BKxY0WZlK1MmaW4g2Bi1YJHdpbenIxuFRExg X-Gm-Gg: AZuq6aKnXqi/eZW8BDv1q7sH7UtqlHlWV2WWodd/3BBM+W01ZpcweCh5pNUmGQULeEX Qp15JeX0VSF6G3OKukQtH5dtJLdbrOC70Dp+BOnLgU5yQu48Ouh96PYobxH40TikjY00XhMaCi3 CFVkT50WM6gwRw4Q0A8DTggBQj6ZJulBe1RDCTZN9RjOXBexg++cRhLJaTceTE+03b3UWpIbLza ZkxF7XTa8ZDvVCkCXM/LKruAewUNrfxRZzP+ZgTJd0D5Tp/0cjStwKfjd0J+iMI3JrzzAIsJxl2 5ACPd9DUw4U+76RHeynJ9pVCu0Q5YopUYe3OmVfvAd9S8rloqY30cj0p/1oeZHlbhi2nTRejmhq i60BECxJ+UZ6uZwZH5iF+j4mWDrreYfQT6FM8y7w= X-Received: by 2002:ac8:574b:0:b0:4f1:b3c0:2ae7 with SMTP id d75a77b69052e-506a6a604damr9881811cf.6.1770952888246; Thu, 12 Feb 2026 19:21:28 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([2620:125:9017:12:36:3:5:0]) by smtp-relay.gmail.com with ESMTPS id d75a77b69052e-50684b8e231sm4821541cf.8.2026.02.12.19.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Feb 2026 19:21:28 -0800 (PST) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (dev-csander.dev.purestorage.com [10.112.29.101]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id 8A5DA34050F; Thu, 12 Feb 2026 20:21:27 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 73459E41DCC; Thu, 12 Feb 2026 20:21:27 -0700 (MST) From: Caleb Sander Mateos To: Jens Axboe , Christoph Hellwig , Keith Busch , Sagi Grimberg Cc: io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Caleb Sander Mateos Subject: [PATCH 0/3] io_uring/uring_cmd: allow non-iopoll cmds with IORING_SETUP_IOPOLL Date: Thu, 12 Feb 2026 20:21:16 -0700 Message-ID: <20260213032119.1125331-1-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Currently, creating an io_uring with IORING_SETUP_IOPOLL requires all requests issued to it to support iopoll. This prevents, for example, using ublk zero-copy together with IORING_SETUP_IOPOLL, as ublk zero-copy buffer registrations are performed using a uring_cmd. There's no technical reason why these non-iopoll uring_cmds can't be supported. They will either complete synchronously or via an external mechanism that calls io_uring_cmd_done(), so they don't need to be polled. Allow uring_cmd requests to be issued to IORING_SETUP_IOPOLL io_urings even if their files don't implement ->uring_cmd_iopoll(). The first commit fixes a few bugs where IORING_OP_URING_CMD128 isn't treated as IORING_OP_URING_CMD with iopoll and provided buffers. The last commit removes an unnecessary IO_URING_F_IOPOLL check in nvme_dev_uring_cmd() as NVMe admin passthru commands can be issued to IORING_SETUP_IOPOLL io_urings now. Caleb Sander Mateos (3): io_uring: add IORING_OP_URING_CMD128 to opcode checks io_uring/uring_cmd: allow non-iopoll cmds with IORING_SETUP_IOPOLL nvme: remove nvme_dev_uring_cmd() IO_URING_F_IOPOLL check drivers/nvme/host/ioctl.c | 4 ---- io_uring/io_uring.c | 4 +++- io_uring/io_uring.h | 6 ++++++ io_uring/kbuf.c | 2 +- io_uring/rw.c | 4 ++-- io_uring/uring_cmd.c | 11 +++++------ 6 files changed, 17 insertions(+), 14 deletions(-) -- 2.45.2