From 992ffd80713ba0d50c160223cdc5469a33d75a8e Mon Sep 17 00:00:00 2001 From: Andrey Kuzmin Date: Tue, 28 May 2019 17:11:30 +0300 Subject: [PATCH] bdev: drop extra assert on nomem io completion. Addresses the issue https://github.com/spdk/spdk/issues/805. Change-Id: I7b1cf9d8de0689a987b7a90c925b04076856f34f Signed-off-by: Andrey Kuzmin Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455985 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Changpeng Liu --- lib/bdev/bdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bdev/bdev.c b/lib/bdev/bdev.c index 4d590261b..4a78763b6 100644 --- a/lib/bdev/bdev.c +++ b/lib/bdev/bdev.c @@ -3524,7 +3524,6 @@ spdk_bdev_io_complete(struct spdk_bdev_io *bdev_io, enum spdk_bdev_io_status sta shared_resource->io_outstanding--; if (spdk_unlikely(status == SPDK_BDEV_IO_STATUS_NOMEM)) { - assert(shared_resource->io_outstanding > 0); TAILQ_INSERT_HEAD(&shared_resource->nomem_io, bdev_io, internal.link); /* * Wait for some of the outstanding I/O to complete before we