Skip to content

Commit eada754

Browse files
calebsanderkeithbusch
authored andcommitted
nvme/ioctl: don't warn on vectorized uring_cmd with fixed buffer
The vectorized io_uring NVMe passthru opcodes don't yet support fixed buffers. But since userspace can trigger this condition based on the io_uring SQE parameters, it shouldn't cause a kernel warning. Signed-off-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Fixes: 23fd22e ("nvme: wire up fixed buffer support for nvme passthrough") Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent ea7789c commit eada754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static int nvme_map_user_request(struct request *req, u64 ubuffer,
142142
struct iov_iter iter;
143143

144144
/* fixedbufs is only for non-vectored io */
145-
if (WARN_ON_ONCE(flags & NVME_IOCTL_VEC)) {
145+
if (flags & NVME_IOCTL_VEC) {
146146
ret = -EINVAL;
147147
goto out;
148148
}

0 commit comments

Comments
 (0)