From nobody Thu Apr 2 21:53:24 2026 Received: from mail-dl1-f98.google.com (mail-dl1-f98.google.com [74.125.82.98]) (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 159821B0439 for ; Fri, 13 Feb 2026 03:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.98 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770952891; cv=none; b=PqwPRw/hXVjWzjdaLqDJ/q66fNHxLFXsnPefICKbok/QZH7ABeIu4Xyi6Q/qmglTDyqMWomLvlBixcC2Vc4e82OChH2IMYnaP0ngeJw+lM8rvb6sF9i91nTu7u7vlEgknsfHjJLHViO3zf1RuxlXZwwntBrQGqts6TJ5RXrvLWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770952891; c=relaxed/simple; bh=Pk0eKb5jrGWG8Xmev1Uz7ZL4nkZ1Sxp5mFYfnx60VKA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PUHBtrjAf/mNnaLKo4pz9+5xRehSCfPdgGpVY0TkCPa6feIR6GAZ5vtTb682Rj99Gg8MbpWK1Mhoswo0DhROX3Saq3EP+6b9az7WqAMrzvtZrVmZaCjxGupbRGhCZ7UwDXZZ4V5O2F2whuOU8lsKbq3cjBHVzIWvW6FFfYI2NbE= 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=fPYAWSOl; arc=none smtp.client-ip=74.125.82.98 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="fPYAWSOl" Received: by mail-dl1-f98.google.com with SMTP id a92af1059eb24-127148c2112so16095c88.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=1770952889; x=1771557689; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AmRiY+gYv1Yx/1Ht580JCWnZXV60oDsI6NKnjtBd258=; b=fPYAWSOlytlHNXVOkuBkLHmckazOerV300QBaEUNsi25QWMiSJKd39lZNYYHc0rpeO U9EhH7K8V8ysqXQBxJhTIvFLzRsiuHXYnw8x1nqG/Imn1DifepX/rsfMr/UZ+HS9UQNH GOBfmqjeAmq3/dPyb1wtR+7xEHI+WRrGxTjmXt1dD1f4agsfYnrzAIdo8lfbjkVJ3suP fdV1sEENvnoO4XeHEiLCLrpiM7tHgB1LWqOz4Z6CszSpFIIus10bsPMxErWNV7ycShlj B2A/4+Mx4AGARPohgstevOEHZLz/HS0lXXQA5IZ9St3uXLz2hdWgqXz3LXhYdG/EqPOF 2p3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770952889; x=1771557689; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=AmRiY+gYv1Yx/1Ht580JCWnZXV60oDsI6NKnjtBd258=; b=esL7xcV/OQpYtrpG5mhdf21Kx9uMP+gZ3NTvLKe3z+1BhawGMCfMDZZsfZOS4bn8z/ q5yOs4Rt3aOmii4nxxxAfa0cJGAFuspDvhVhWizwgargnoWNieqOjKCKlWetEpet/8Ay xIv3d8L+owXImTQHxG9EZHTzp2C21A0HGSJJrlLilPV0bmPysisIyqH8mcbSHozHDB3p GPHQBUYn5obUP7p/SCgR5a3ySSkh+WnFvAgfwFFxNhLL8Q5WNG+pgBY3/zgA7q3BL4Ok kErf391G4iR0xz4ROQ2NQg6ZeY4qntmXqkwmnxwpUZoHQkR8MjW4h9fw4y1iLSeaM6C3 ESww== X-Forwarded-Encrypted: i=1; AJvYcCUSDUAbshjrQ1pdf00EusfX7pBwuEZnSo/wNaNs0EKNaUrBQ3AO9G/chG9UTLPyofTZbRSRcici4u3yqW0=@vger.kernel.org X-Gm-Message-State: AOJu0YzJWsUSnD6hkHQLgmD3mFw9PtdOqhzqQYrudgcfVtFW4I6MFkyI rgyO6l99iDSdUa7ngJysmg+zPS6B3k5pxmxlkHHKXV/s4vDGZZ1yhA98VEYDwUReJUGq3QEfQVo SvsYli+FxlNyQsWIQ6+b6Ryi400nqNz2ia/H0 X-Gm-Gg: AZuq6aKJIft6rkICG/8QZgqyG4uogjm3Ntgdg1QQeQFh+rd95ratthBmy6dmSEpxoJS pitddm9OtlvO8ag0+aNWCT347MuzpQAUcN2LZ6sNQcIktSS/W6rCNwhDFz1SLNDKznmwUcX4b22 b00gHTX37ZAklubfQ2NhGfY/p1pPhNEH4YnUqrrAP5YSbTi0hYzhVNsoGJ2t27kfl9f/VAVcqFN S8Eel3XWO135hwi5Ko1OEcFKmmj4MO6k6LAvZ6Vir26pRpMyNh6caPg8k2cSsGIqQ2ZtQfuxLBK wPOwRupXb/x9NIJf8ROA6jMDVo2S5bRuKbYj0/jK3CuEtAR2K3ahzmyDLXTILWL8bH57tH3BWxj yEsgUWpJYlMSdsEyShoGK9iW74ivci/h0A+YVlhXP4lAVKKII+Ghjrw== X-Received: by 2002:a05:7022:6283:b0:11e:3e9:3e88 with SMTP id a92af1059eb24-1273996b276mr248941c88.6.1770952889051; Thu, 12 Feb 2026 19:21:29 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([208.88.159.129]) by smtp-relay.gmail.com with ESMTPS id a92af1059eb24-1273a0db6d1sm104957c88.4.2026.02.12.19.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Feb 2026 19:21:29 -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 1D294342244; Thu, 12 Feb 2026 20:21:28 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 172D3E41DCC; Thu, 12 Feb 2026 20:21:28 -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 3/3] nvme: remove nvme_dev_uring_cmd() IO_URING_F_IOPOLL check Date: Thu, 12 Feb 2026 20:21:19 -0700 Message-ID: <20260213032119.1125331-4-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260213032119.1125331-1-csander@purestorage.com> References: <20260213032119.1125331-1-csander@purestorage.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" nvme_dev_uring_cmd() is part of struct file_operations nvme_dev_fops, which doesn't implement ->uring_cmd_iopoll(). So it won't be called with issue_flags that include IO_URING_F_IOPOLL. Drop the unnecessary IO_URING_F_IOPOLL check in nvme_dev_uring_cmd(). Signed-off-by: Caleb Sander Mateos --- drivers/nvme/host/ioctl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/nvme/host/ioctl.c b/drivers/nvme/host/ioctl.c index fb62633ccbb0..fa489c1979db 100644 --- a/drivers/nvme/host/ioctl.c +++ b/drivers/nvme/host/ioctl.c @@ -783,14 +783,10 @@ int nvme_ns_head_chr_uring_cmd(struct io_uring_cmd *i= oucmd, int nvme_dev_uring_cmd(struct io_uring_cmd *ioucmd, unsigned int issue_fla= gs) { struct nvme_ctrl *ctrl =3D ioucmd->file->private_data; int ret; =20 - /* IOPOLL not supported yet */ - if (issue_flags & IO_URING_F_IOPOLL) - return -EOPNOTSUPP; - ret =3D nvme_uring_cmd_checks(issue_flags); if (ret) return ret; =20 switch (ioucmd->cmd_op) { --=20 2.45.2