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 <akuzmin@jetstreamsoft.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455985
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
Andrey Kuzmin 2019-05-28 17:11:30 +03:00 committed by Changpeng Liu
parent 11047d5b23
commit 992ffd8071

View File

@ -3524,7 +3524,6 @@ spdk_bdev_io_complete(struct spdk_bdev_io *bdev_io, enum spdk_bdev_io_status sta
shared_resource->io_outstanding--; shared_resource->io_outstanding--;
if (spdk_unlikely(status == SPDK_BDEV_IO_STATUS_NOMEM)) { 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); TAILQ_INSERT_HEAD(&shared_resource->nomem_io, bdev_io, internal.link);
/* /*
* Wait for some of the outstanding I/O to complete before we * Wait for some of the outstanding I/O to complete before we