diff --git a/lib/idxd/idxd.c b/lib/idxd/idxd.c index 5bd35a81d..0b5ed96fc 100644 --- a/lib/idxd/idxd.c +++ b/lib/idxd/idxd.c @@ -47,11 +47,6 @@ #define ALIGN_4K 0x1000 #define USERSPACE_DRIVER_NAME "user" #define KERNEL_DRIVER_NAME "kernel" -/* - * Need to limit how many completions we reap in one poller to avoid starving - * other threads as callers can submit new operations on the polling thread. - */ -#define MAX_COMPLETIONS_PER_POLL 16 static STAILQ_HEAD(, spdk_idxd_impl) g_idxd_impls = STAILQ_HEAD_INITIALIZER(g_idxd_impls); static struct spdk_idxd_impl *g_idxd_impl; @@ -1120,10 +1115,6 @@ spdk_idxd_process_events(struct spdk_idxd_io_channel *chan) assert(chan != NULL); TAILQ_FOREACH_SAFE(op, &chan->ops_outstanding, link, tmp) { - if (rc == MAX_COMPLETIONS_PER_POLL) { - break; - } - if (IDXD_COMPLETION(op->hw.status)) { TAILQ_REMOVE(&chan->ops_outstanding, op, link);