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: Jim Harris <james.r.harris@intel.com> Change-Id: Idcb77f14c710dea08e36b1ed01a0eb8f6ab17045 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15755 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
296bca08c1
commit
06bcface42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user