From patchwork Mon Jan 16 16:46:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Begunkov X-Patchwork-Id: 13103503 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EB76C67871 for ; Mon, 16 Jan 2023 17:06:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234195AbjAPRGR (ORCPT ); Mon, 16 Jan 2023 12:06:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234196AbjAPRFt (ORCPT ); Mon, 16 Jan 2023 12:05:49 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA84A42BD1 for ; Mon, 16 Jan 2023 08:47:15 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id iv8-20020a05600c548800b003db04a0a46bso77808wmb.0 for ; Mon, 16 Jan 2023 08:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dBVp6yRtRK9lPrnY+FhtWIbQj375GGk2O7UbyglVeRI=; b=Tw/UBEvFwfZ4gfOsa6d+8gel1ZykUZfHUxkjXMklwLxhwQDYi4FdoEHlHmYrFcMSO9 cV1VX16olK0tu1YeY1fkZ/iNJHgA8VoWk7cJA2StbvW5fFwgsGN0b1B4k4OXTh5+s50z ePJNc93m+VzUbSLfpmbrqEXJMn+0M0xhPUJLtMN7vqDmPW66GR2aCkuUa2HIvnm8JGwb D1KKZkOcyYG8pWzFxeLWE9nGEWRxAhCs7GJGruAUZVnSqLb2jE/unGxFmTU/8r8nlt/k jLTI4HV3qZeZ08C8PWKXlzJTNKrzq4zvog3VLUeYcthRxSkLyHImUcQ5WW/ZVaDQzHPW 8lxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dBVp6yRtRK9lPrnY+FhtWIbQj375GGk2O7UbyglVeRI=; b=6GPjCPwOOHEe45wkwa/aoo4aNFIXd2fmASAwaM4WgENDbSqlv8jrzc9v4rIb2ZOWPc wWjaV95hNa44R/dHVnFve3WW4g3KbrUE1qPyHkMUqGbZJd7sXpb8g/X3eiV/j4rRZmRx oVFBc9GxBhoB2CfzbgK/SoCswiL43YzqyD9xOAztnRZuYtnYG15iIqJGzgjgc/KQ0D7t 23MVe2xvXyCupbrv4D3kY+eNEewUcgTZIapWlsWQF8oIB7eLUtGejWaD96JSTW6uiX74 vB+01xxwYdkd954S/iSVU6dcGuRrahY7ZVWRIKC1U3J65EYpq4HxZMJUabJ2BIn2A2oy eTAQ== X-Gm-Message-State: AFqh2kqPlcZUDXpTHd0GEHnBB7llwZcJfM+UGwCK/t1IpKHAQtVf4nnA MADThtsW3P5QDmc+O5TeXTxZHsc28QU= X-Google-Smtp-Source: AMrXdXttATKKg9x2Zkwh0qETCZyEWYdiZx/1BURH+lK19dB4fbHC8CCAWOl2IZv9M+hMlJMU1asfZg== X-Received: by 2002:a05:600c:1d29:b0:3d9:69fd:7707 with SMTP id l41-20020a05600c1d2900b003d969fd7707mr8835824wms.2.1673887633719; Mon, 16 Jan 2023 08:47:13 -0800 (PST) Received: from 127.0.0.1localhost (92.41.33.8.threembb.co.uk. [92.41.33.8]) by smtp.gmail.com with ESMTPSA id v10-20020a05600c444a00b003d998412db6sm42012397wmn.28.2023.01.16.08.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 08:47:13 -0800 (PST) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: Jens Axboe , asml.silence@gmail.com Subject: [PATCH liburing 1/3] tests: refactor poll-many.c Date: Mon, 16 Jan 2023 16:46:07 +0000 Message-Id: <2c4935efe1ba84e48bf444afc119ad60a51befc5.1673886955.git.asml.silence@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org Use right return codes and extract the testing into a function Signed-off-by: Pavel Begunkov --- test/poll-many.c | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/test/poll-many.c b/test/poll-many.c index dfbeeab..ebf22e8 100644 --- a/test/poll-many.c +++ b/test/poll-many.c @@ -14,6 +14,7 @@ #include #include "liburing.h" +#include "helpers.h" #define NFILES 5000 #define BATCH 500 @@ -137,6 +138,21 @@ static int arm_polls(struct io_uring *ring) return 0; } +static int do_test(struct io_uring *ring) +{ + int i; + + if (arm_polls(ring)) + return 1; + + for (i = 0; i < NLOOPS; i++) { + trigger_polls(); + if (reap_polls(ring)) + return 1; + } + return 0; +} + int main(int argc, char *argv[]) { struct io_uring ring; @@ -149,7 +165,7 @@ int main(int argc, char *argv[]) if (getrlimit(RLIMIT_NOFILE, &rlim) < 0) { perror("getrlimit"); - goto err_noring; + return T_EXIT_FAIL; } if (rlim.rlim_cur < (2 * NFILES + 5)) { @@ -159,14 +175,14 @@ int main(int argc, char *argv[]) if (errno == EPERM) goto err_nofail; perror("setrlimit"); - goto err_noring; + return T_EXIT_FAIL; } } for (i = 0; i < NFILES; i++) { if (pipe(p[i].fd) < 0) { perror("pipe"); - goto err_noring; + return T_EXIT_FAIL; } } @@ -176,31 +192,23 @@ int main(int argc, char *argv[]) if (ret) { if (ret == -EINVAL) { fprintf(stdout, "No CQSIZE, trying without\n"); - ret = io_uring_queue_init(RING_SIZE, &ring, 0); + + params.flags &= ~IORING_SETUP_CQSIZE; + params.cq_entries = 0; + ret = io_uring_queue_init_params(RING_SIZE, &ring, ¶ms); if (ret) { fprintf(stderr, "ring setup failed: %d\n", ret); - return 1; + return T_EXIT_FAIL; } } } - if (arm_polls(&ring)) - goto err; - - for (i = 0; i < NLOOPS; i++) { - trigger_polls(); - ret = reap_polls(&ring); - if (ret) - goto err; + if (do_test(&ring)) { + fprintf(stderr, "test (normal) failed\n"); + return T_EXIT_FAIL; } - io_uring_queue_exit(&ring); return 0; -err: - io_uring_queue_exit(&ring); -err_noring: - fprintf(stderr, "poll-many failed\n"); - return 1; err_nofail: fprintf(stderr, "poll-many: not enough files available (and not root), " "skipped\n"); From patchwork Mon Jan 16 16:46:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Begunkov X-Patchwork-Id: 13103504 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADFC7C678D8 for ; Mon, 16 Jan 2023 17:06:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230486AbjAPRGS (ORCPT ); Mon, 16 Jan 2023 12:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232398AbjAPRFu (ORCPT ); Mon, 16 Jan 2023 12:05:50 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7444842BD5 for ; Mon, 16 Jan 2023 08:47:16 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id j16-20020a05600c1c1000b003d9ef8c274bso18258322wms.0 for ; Mon, 16 Jan 2023 08:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L/Wr/ipByodLycxvyQUAhnWW/NedGrHZEzxbsid/aLE=; b=CBWyMnBFag8UBRrFfFuqrl1qiSMc2PlCT8ZcTMDoQh4aelF/4bzznyd3Ogp2ieNd2q 75QRNJOguB0UJ9aSCWjbla58o/7lqsnXfMY38As83zPzUGcAXDNiKI+k5rbKd3C9ZUZG rX+YARamMsYg20e2s17L6SlDpP6fxLJ7YfpC+gX9zbb/MAKLVTOlh55ZR0PhWmkPye8A 3Scyr849awk9WcNDuROperTTbJOXWZynUyzDeoODXKoLBCCclpPADLzHusUwLZOJCI5g weqALgD5tn2kWeB6+J6WxLxWvYHIMJLtau9HJd0rXbGqN5oqxlI+6KiXDDCVefhUlel+ YpDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L/Wr/ipByodLycxvyQUAhnWW/NedGrHZEzxbsid/aLE=; b=mvnb6k3BzSIMpGHN8XE0j5xVmDj+MeZy9ZMUSPcBsx4yPz/UvAC52RrB5RD9HNje7g Jl9nmjn6OTFtHvtylt85i2+vTujpwgiqb8Qd7CVqmWpUdIy+8Lj9Be0mu/lyrirnLLry t57HC76hUeZOrOJJ/SHJqJjfahCBm23ZqS2WHiiGA4bXzNOvh8UbHiyfqs6QyUMLTbL5 iVEPg57crix5Cgh1zfNMJwOqL4pSDEtPTQX9MHnwaTcBt2iwodKpFWZh0yP33kVZz3VF UIkE6pPg2NT7uTJuqiq2x21QbYcm1MQHQLMCIZgufJI0CSYBEI87EUz44gojaPtx9ivy HjmA== X-Gm-Message-State: AFqh2kpkVNbzg3mp+BtQ/CkGpQL0f6cOQ5J2x5O37ds4+vnyiG87KRZd +q/7eKRCpBg7TiyvUXYYqGdVeBIkpPY= X-Google-Smtp-Source: AMrXdXvgwO3tgUYwK+MArDtOm1y8TfusPQFwi8EHPA1SFrwmTrIDZcrWY828FPiZ15tAZjNpx7iZQw== X-Received: by 2002:a05:600c:1c1b:b0:3d9:ebf9:7004 with SMTP id j27-20020a05600c1c1b00b003d9ebf97004mr112961wms.29.1673887634703; Mon, 16 Jan 2023 08:47:14 -0800 (PST) Received: from 127.0.0.1localhost (92.41.33.8.threembb.co.uk. [92.41.33.8]) by smtp.gmail.com with ESMTPSA id v10-20020a05600c444a00b003d998412db6sm42012397wmn.28.2023.01.16.08.47.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 08:47:14 -0800 (PST) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: Jens Axboe , asml.silence@gmail.com Subject: [PATCH liburing 2/3] tests: test DEFER_TASKRUN in poll-many Date: Mon, 16 Jan 2023 16:46:08 +0000 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org We want to extend DEFER_TASKRUN test coverage for polling, so make poll-many.c to test it. Signed-off-by: Pavel Begunkov --- test/poll-many.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/poll-many.c b/test/poll-many.c index ebf22e8..da3da21 100644 --- a/test/poll-many.c +++ b/test/poll-many.c @@ -208,6 +208,20 @@ int main(int argc, char *argv[]) return T_EXIT_FAIL; } io_uring_queue_exit(&ring); + + if (t_probe_defer_taskrun()) { + params.flags |= IORING_SETUP_SINGLE_ISSUER | IORING_SETUP_DEFER_TASKRUN; + ret = io_uring_queue_init_params(RING_SIZE, &ring, ¶ms); + if (ret) { + fprintf(stderr, "ring DEFER setup failed: %d\n", ret); + return T_EXIT_FAIL; + } + if (do_test(&ring)) { + fprintf(stderr, "test (DEFER) failed\n"); + return T_EXIT_FAIL; + } + io_uring_queue_exit(&ring); + } return 0; err_nofail: fprintf(stderr, "poll-many: not enough files available (and not root), " From patchwork Mon Jan 16 16:46:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Begunkov X-Patchwork-Id: 13103505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D36EC54EBE for ; Mon, 16 Jan 2023 17:06:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234204AbjAPRGT (ORCPT ); Mon, 16 Jan 2023 12:06:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234206AbjAPRFu (ORCPT ); Mon, 16 Jan 2023 12:05:50 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5744142BDB for ; Mon, 16 Jan 2023 08:47:17 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id o17-20020a05600c511100b003db021ef437so1232295wms.4 for ; Mon, 16 Jan 2023 08:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lX8aU+It/RddJirXAjTzMk8oomykuceGP53WmVeJLB4=; b=iJMzeWKhpeQZMlkaCE6FtGlPWi2/O5NTxYtmLmVaac4AsNlT+JvlAhQObLc1INGphy DeNsoSn+pSyg+rkHHqA3qYICmV6Z/1NhdD1U7TBtCBZjgiTESk/Wy/FXIR9JkJllFebb OISqG+EL1wWKd35cq9MT9IO8frEgd08nffDvmTK9+q2fob7Yb8oVHokLb7NGjnECaaN/ HwB4vTTAJ5AibdoTvmcMWTy56yozuKqyOzv7Rx6KYBtdbg/7vvBMh92uFm3CzR7lqAS2 lw7gSocdfpePiERGDupo9LypNVJxe+oSWRY9qFjH9LZEZKPVvqbEVlvk76z+Zj8geCRy yeOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lX8aU+It/RddJirXAjTzMk8oomykuceGP53WmVeJLB4=; b=sO34xYsDNEzc1WLpPEGrPJ9ox3IlRbdT7UEMbfxFG6gxMydTo7gwiwlxKe8Z6Mw3A6 SgkxsmmkHm1rViJnYXiPwrW02TkFpyHAITnHf8YiUNX7bVPHOkLsVKDYOaI11aXuWNK8 rVHBgDTG7teSqPXEYouIpxy8Pexgx9YyNTpBzAJVrZNwGKXhX55s6SaBLqgkAE+3hmpF BlzVW0LV6IvgfkzuB+XEZBwvrsPbVjWVxPqpvFcACEwr9gYZ41gm8YLUNHDf8UUYQ2Nu 3vOHzWtjugMj+t8C5bATXeoyhDdC8oTPT9oQtugp3pu+R758ScDgQLzc7nIiyOKj1kns c7qQ== X-Gm-Message-State: AFqh2krp3oqPZBCKeV/4ET3HztN9ksGPxRfD0/zIhOYYkbnXfhiZFYuc bfV+zT1KcRgzZM9HsQmZ0KZVuk3J9vE= X-Google-Smtp-Source: AMrXdXvSjgoTaLXll3wLQ107QxYmR3a15Xl3JU71KD2Qss22BJeOoRegEaL+enlp0btg/S0xb5IUoA== X-Received: by 2002:a05:600c:24ce:b0:3da:18c5:e48b with SMTP id 14-20020a05600c24ce00b003da18c5e48bmr8840714wmu.18.1673887635629; Mon, 16 Jan 2023 08:47:15 -0800 (PST) Received: from 127.0.0.1localhost (92.41.33.8.threembb.co.uk. [92.41.33.8]) by smtp.gmail.com with ESMTPSA id v10-20020a05600c444a00b003d998412db6sm42012397wmn.28.2023.01.16.08.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 08:47:15 -0800 (PST) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: Jens Axboe , asml.silence@gmail.com Subject: [PATCH liburing 3/3] tests: lazy pollwq activation for disabled rings Date: Mon, 16 Jan 2023 16:46:09 +0000 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org We have some internal changes in how ring polling is done, i.e. lazy pollwq activation, test it when we start polling a disabled ring and so before the task has been assigned. Signed-off-by: Pavel Begunkov --- test/poll.c | 96 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 89 insertions(+), 7 deletions(-) diff --git a/test/poll.c b/test/poll.c index a7db7dc..7b90f3d 100644 --- a/test/poll.c +++ b/test/poll.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "helpers.h" #include "liburing.h" @@ -22,6 +23,15 @@ static void do_setsockopt(int fd, int level, int optname, int val) error(1, errno, "setsockopt %d.%d: %d", level, optname, val); } +static bool check_cq_empty(struct io_uring *ring) +{ + struct io_uring_cqe *cqe = NULL; + int ret; + + ret = io_uring_peek_cqe(ring, &cqe); /* nothing should be there */ + return ret == -EAGAIN; +} + static int test_basic(void) { struct io_uring_cqe *cqe; @@ -110,9 +120,6 @@ static int test_missing_events(void) char buf[2] = {}; int res_mask = 0; - if (!t_probe_defer_taskrun()) - return 0; - ret = io_uring_queue_init(8, &ring, IORING_SETUP_SINGLE_ISSUER | IORING_SETUP_DEFER_TASKRUN); if (ret) { @@ -180,6 +187,66 @@ static int test_missing_events(void) return 0; } +static int test_disabled_ring_lazy_polling(int early_poll) +{ + struct io_uring_cqe *cqe; + struct io_uring_sqe *sqe; + struct io_uring ring, ring2; + unsigned head; + int ret, i = 0; + + ret = io_uring_queue_init(8, &ring, IORING_SETUP_SINGLE_ISSUER | + IORING_SETUP_DEFER_TASKRUN | + IORING_SETUP_R_DISABLED); + if (ret) { + fprintf(stderr, "ring setup failed: %d\n", ret); + return 1; + } + ret = io_uring_queue_init(8, &ring2, 0); + if (ret) { + fprintf(stderr, "ring2 setup failed: %d\n", ret); + return 1; + } + + if (early_poll) { + /* start polling disabled DEFER_TASKRUN ring */ + sqe = io_uring_get_sqe(&ring2); + io_uring_prep_poll_add(sqe, ring.ring_fd, POLLIN); + ret = io_uring_submit(&ring2); + assert(ret == 1); + assert(check_cq_empty(&ring2)); + } + + /* enable rings, which should also activate pollwq */ + ret = io_uring_enable_rings(&ring); + assert(ret >= 0); + + if (!early_poll) { + /* start polling enabled DEFER_TASKRUN ring */ + sqe = io_uring_get_sqe(&ring2); + io_uring_prep_poll_add(sqe, ring.ring_fd, POLLIN); + ret = io_uring_submit(&ring2); + assert(ret == 1); + assert(check_cq_empty(&ring2)); + } + + sqe = io_uring_get_sqe(&ring); + io_uring_prep_nop(sqe); + ret = io_uring_submit(&ring); + assert(ret == 1); + + io_uring_for_each_cqe(&ring2, head, cqe) { + i++; + } + if (i != 1) { + fprintf(stderr, "fail, polling stuck\n"); + return 1; + } + io_uring_queue_exit(&ring); + io_uring_queue_exit(&ring2); + return 0; +} + int main(int argc, char *argv[]) { int ret; @@ -193,10 +260,25 @@ int main(int argc, char *argv[]) return T_EXIT_FAIL; } - ret = test_missing_events(); - if (ret) { - fprintf(stderr, "test_missing_events() failed %i\n", ret); - return T_EXIT_FAIL; + + if (t_probe_defer_taskrun()) { + ret = test_missing_events(); + if (ret) { + fprintf(stderr, "test_missing_events() failed %i\n", ret); + return T_EXIT_FAIL; + } + + ret = test_disabled_ring_lazy_polling(false); + if (ret) { + fprintf(stderr, "test_disabled_ring_lazy_polling(false) failed %i\n", ret); + return T_EXIT_FAIL; + } + + ret = test_disabled_ring_lazy_polling(true); + if (ret) { + fprintf(stderr, "test_disabled_ring_lazy_polling(true) failed %i\n", ret); + return T_EXIT_FAIL; + } } return 0;