From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f97.google.com (mail-ot1-f97.google.com [209.85.210.97]) (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 7FFEF47A0C6 for ; Fri, 27 Feb 2026 22:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772231712; cv=none; b=PAP3FPzWPZZXjdtxnhM8SIwB24FNStUF4NtCmCxpkPDetbx0CS6sd8sMD2BHECzNqZzwi6AuIiQ8hUrvHvqEvjJcQsMyOjnARHZStDUsfn8TgiHN8pyz3BS2FZm7kFM5lh5z5/NCJZ8CnuD2qoWkcIcuD9QVgu3NcjkYtJo2f6A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772231712; c=relaxed/simple; bh=leoJQLYUVaLoPMfpnaJ83Ki6TjRT6ZQ1hoz2AIfe5rc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TRJMKr8YMkaLphhHmeW4fSc5Fqn57sjYq6Y4LP3Xp5s1AxahPSp3PqEXakNtYn5WqM0qRFohj35wPFPWCaGYe1U5xnSYj0+tbmef5koxRk+3SOs2USDQeserl8tfA0qiK7/jAK/BX382bkDUIMIscfLVFoGhuI/uQ68wk0a9jvU= 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=VQLoDKup; arc=none smtp.client-ip=209.85.210.97 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="VQLoDKup" Received: by mail-ot1-f97.google.com with SMTP id 46e09a7af769-7d2ebc06f66so391051a34.0 for ; Fri, 27 Feb 2026 14:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1772231708; x=1772836508; 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=bC/PSnv7yOwEPTd/AMtRMqWpAAmzjzQLzKujNS/xPPY=; b=VQLoDKupuJgNIOaqL0VxdWMOv18q3vC5o3ztF0azusyMRSoQch0qaspgKAjsJUtceh lulR0nNdkJPApr5t+zMi87OCFAWGjEc/7EawCV0R1FRSG4ngMI32THlxxLNBM1zfMfaB 8MothmsbvU71hANd5ipcLYmMUVahnWX+Bu0x7CmfPWyiIjsjS6SbT9qNMxPAiL8altMM dDzSD6RiSpvVuj+hMQRiFFa+Cl0uKEJOd818TyoTUJieQGk7+ncwTP2fs/GqV39hceOh 35jBm1DuHHPbT18XiBHVZGzaWuWUbAKOnsrpQQnO8rFJs4LLe9URaDNfQBD/4ky4m+qG nOdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772231708; x=1772836508; 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=bC/PSnv7yOwEPTd/AMtRMqWpAAmzjzQLzKujNS/xPPY=; b=DM65pTv5yARNaSU63qBkaGgXzEU1Yu0msW6bSu3IWyPrAg4I23k2h5rKSQLSXRqiDu uioC2bT+OtqWqGunM+PFSP4mZ8VmQhlY73ZEcr84drI8mO2VWo/GLUAz4XvMHQomqFg6 ExuMlbCLHDsrNqbN+OyoNjtXJTkWG/S1U+1Z5E8xvekpIuFkM8+gWgzBY+fagf+9QBao eCA/tuKgVVxWzk95F5YL2OuGV9ithkL3Bg0upwDTVOrL7tLrwyuiGbRzf8M0aLKEYOuR y9ecmj0tEadih8Vtzl2sppZTRK8xzbxXqPPsM1EkrBzWmjJ5QEdQNFo0UfblcZOK31Yd 6XCQ== X-Forwarded-Encrypted: i=1; AJvYcCWTIL0rKNVTpweg+5K7UARhIGopvcUDVpnySA3RCKhujD1378s2DAzwce4w2l56reQtSP8Ns6aVBoFQz/I=@vger.kernel.org X-Gm-Message-State: AOJu0Yy4wMvlJTtdJLXGd3GUg9pICn/bRZghKh5OhkWGy0RACyvvYLQt NyqWXElmTgH/s+TTOSIwsbe9L5E3DnBIknj7kop1hnr5jNmAMkYC4G7rd0JngGxCnlyPwloh62H jEW6H58mJ20jxCM4pLBa4ufcdZv9Qa+nRGWNVl+4KhIlP1m4KOU3A X-Gm-Gg: ATEYQzz3O9Tmf39lMCaEFu8MT9tniER/xa43g5C7gi8Nt/qPIQOs2bggQPvmaCOcWTP U7DMEDhZwmHLiWdEnlhDoEYYirKOp3Ql9SLffn7Mch+IjV0IWM9AqTycmYZ7z+2PmyiYFwCktrc yRwrZJbHUp563f6b5bQmtAfeIdw0iYFS+9a2STcEAcl3e6EaQ0F1BhS1BYwWx4gfkU97O1Fm+WM KK5JH3OM+gzfq3WvE7VQWAYdQOGPEifGV06suTWQ4HJG70SSDKg7FvHqNmGQirJlPRmTlX/65Ui uMMcHZWjqremMcHGoj35po6ACcW7G8FjNoRUNoHnxxzt8EjwjI7zGg/8WAysJrmJSQBd7/tTOwl KnK8z040qV+O5NlBLyxHSjgF4hhQbddNdCzIJeZY= X-Received: by 2002:a05:6830:91e:b0:7d1:4980:2537 with SMTP id 46e09a7af769-7d591bccd6amr2761555a34.4.1772231708517; Fri, 27 Feb 2026 14:35:08 -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 46e09a7af769-7d58644a35asm829296a34.1.2026.02.27.14.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Feb 2026 14:35:08 -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 8A93F3420C0; Fri, 27 Feb 2026 15:35:07 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id 86A24E420D8; Fri, 27 Feb 2026 15:35:07 -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, Anuj Gupta , Kanchan Joshi , Ming Lei , Caleb Sander Mateos Subject: [PATCH v4 5/5] nvme: remove nvme_dev_uring_cmd() IO_URING_F_IOPOLL check Date: Fri, 27 Feb 2026 15:35:03 -0700 Message-ID: <20260227223504.1162421-6-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260227223504.1162421-1-csander@purestorage.com> References: <20260227223504.1162421-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: 8bit 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 Reviewed-by: Kanchan Joshi Reviewed-by: Anuj Gupta --- 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 8844bbd39515..9597a87cf05d 100644 --- a/drivers/nvme/host/ioctl.c +++ b/drivers/nvme/host/ioctl.c @@ -784,14 +784,10 @@ int nvme_ns_head_chr_uring_cmd(struct io_uring_cmd *ioucmd, int nvme_dev_uring_cmd(struct io_uring_cmd *ioucmd, unsigned int issue_flags) { struct nvme_ctrl *ctrl = ioucmd->file->private_data; int ret; - /* IOPOLL not supported yet */ - if (issue_flags & IO_URING_F_IOPOLL) - return -EOPNOTSUPP; - ret = nvme_uring_cmd_checks(issue_flags); if (ret) return ret; switch (ioucmd->cmd_op) { -- 2.45.2