Skip to content

Commit f144dba

Browse files
calebsanderaxboe
authored andcommitted
nvme: remove nvme_dev_uring_cmd() IO_URING_F_IOPOLL check
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 <csander@purestorage.com> Reviewed-by: Kanchan Joshi <joshi.k@samsung.com> Reviewed-by: Anuj Gupta <anuj20.g@samsung.com> Link: https://patch.msgid.link/20260302172914.2488599-6-csander@purestorage.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2347563 commit f144dba

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/nvme/host/ioctl.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -786,10 +786,6 @@ int nvme_dev_uring_cmd(struct io_uring_cmd *ioucmd, unsigned int issue_flags)
786786
struct nvme_ctrl *ctrl = ioucmd->file->private_data;
787787
int ret;
788788

789-
/* IOPOLL not supported yet */
790-
if (issue_flags & IO_URING_F_IOPOLL)
791-
return -EOPNOTSUPP;
792-
793789
ret = nvme_uring_cmd_checks(issue_flags);
794790
if (ret)
795791
return ret;

0 commit comments

Comments
 (0)