Commit e0252fe1 authored by Jim Harris's avatar Jim Harris
Browse files

io_channel: allow NULL spdk_for_each_channel cpl_fn



Some callers may not require a callback function once
the specified function has been called on all channels.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I925751d221918810c2e966640ca636482bf6f866

Reviewed-on: https://review.gerrithub.io/377859


Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 70a0bc30
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -415,7 +415,9 @@ _call_completion(void *ctx)
{
	struct call_channel *ch_ctx = ctx;

	if (ch_ctx->cpl != NULL) {
		ch_ctx->cpl(ch_ctx->io_device, ch_ctx->ctx);
	}
	free(ch_ctx);
}