Commit 06bcface authored by Jim Harris's avatar Jim Harris Committed by Konrad Sztyber
Browse files

spdk_dd: use SPDK_POLLER_REGISTER



This was missed when we created the SPDK_POLLER_REGISTER
macro to use the poller function name as the name of the
poller.  All other uses of spdk_poller_register were
switched to SPDK_POLLER_REGISTER except for these.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: Idcb77f14c710dea08e36b1ed01a0eb8f6ab17045
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15755


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarXiaodong Liu <xiaodong.liu@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
parent 296bca08
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1184,7 +1184,7 @@ dd_run(void *arg1)
				io_uring_flags = IORING_SETUP_IOPOLL;
			}

			g_job.u.uring.poller = spdk_poller_register(dd_uring_poll, NULL, 0);
			g_job.u.uring.poller = SPDK_POLLER_REGISTER(dd_uring_poll, NULL, 0);
			rc = io_uring_queue_init(g_opts.queue_depth * 2, &g_job.u.uring.ring, io_uring_flags);
			if (rc) {
				SPDK_ERRLOG("Failed to create io_uring: %d (%s)\n", rc, spdk_strerror(-rc));
@@ -1212,14 +1212,14 @@ dd_run(void *arg1)
		} else
#endif
		{
			g_job.u.aio.poller = spdk_poller_register(dd_aio_poll, NULL, 0);
			g_job.u.aio.poller = SPDK_POLLER_REGISTER(dd_aio_poll, NULL, 0);
			io_setup(g_opts.queue_depth, &g_job.u.aio.io_ctx);
		}
	}

	clock_gettime(CLOCK_REALTIME, &g_job.start_time);

	g_job.status_poller = spdk_poller_register(dd_status_poller, NULL,
	g_job.status_poller = SPDK_POLLER_REGISTER(dd_status_poller, NULL,
			      STATUS_POLLER_PERIOD_SEC * SPDK_SEC_TO_USEC);

	STAILQ_INIT(&g_job.seek_queue);