Commit 77509767 authored by wanghonghui's avatar wanghonghui Committed by Ben Walker
Browse files

bdev/uring: adjust to the latest io_uring API



Upstream liburing rename the io_uring_get_completion to
io_uring_peek_ceq

Signed-off-by: default avatarHonghui Wang <wanghonghui@ucloud.cn>
Change-Id: I8f207b7b1255b44304f4eca4101b939847767179
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456959


Reviewed-by: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent a8c32ed5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ bdev_uring_reap(struct io_uring *ring, int max)

	count = 0;
	for (i = 0; i < max; i++) {
		ret = io_uring_get_completion(ring, &cqe);
		ret = io_uring_peek_cqe(ring, &cqe);
		if (ret != 0) {
			return ret;
		}
@@ -223,6 +223,7 @@ bdev_uring_reap(struct io_uring *ring, int max)
		}

		uring_task->ch->group_ch->io_inflight--;
		io_uring_cqe_seen(ring, cqe);
		spdk_bdev_io_complete(spdk_bdev_io_from_ctx(uring_task), status);
		count++;
	}