From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by gnuweeb.org (Postfix) with ESMTPSA id 4DA177ED82 for ; Fri, 25 Feb 2022 00:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1645750009; bh=ylxb9aXNgXNBH+uyWNT1OFQXhShEQMh/op4b+jhmMWc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GsltgnT7pQ0ULZ7xObE9qfYWRtEy/JuSUYmp6bzbOLA3/Mk77SROwCHztQd1Ge9pm cMMes4XRkMyYr0kmt7wvd12X2J+4UUHbnCnVnC6P8O6Fewjqb8br9sqqH75eGQDI9Z Nl39MXfxpOqJ7pOj1IRurioh/WFSM3Fd2aLZYJQizEABMGK/v1lUO95T8nmwsaWIv5 kYV4LHyVE1Ym9jsTRwI5koelYi+A1DI05HRrhCBdQHthA2XGt4Hu1drGgD/Dc0a4ef GW0ISs8D5AUruVq1xuUzwAg5JEu+nUviU0mN5Ufua99MvB/Y1V6W0/pWXXXL4Luhxc gmDDHVLAENuWw== Received: by mail-lj1-f178.google.com with SMTP id u7so5261773ljk.13 for ; Thu, 24 Feb 2022 16:46:49 -0800 (PST) X-Gm-Message-State: AOAM533VQyH67beUnuZ+aIQzzLubudy9xdy6JZ/VRKhrMwOJZLPZZokJ 6EtIU2q2bF3aOiM2U36nPNFcFyGrNx5Uto+NGh0= X-Google-Smtp-Source: ABdhPJyDJQo/mw0jBatf8hhDL/kzbG0K9E28iURiqmaCUJnLtxO7M+5FOfFydkvK5aiE7P1NDQM1cLD5oK9n3kUYlcs= X-Received: by 2002:a2e:a37a:0:b0:22d:7f2b:23c with SMTP id i26-20020a2ea37a000000b0022d7f2b023cmr3734359ljn.81.1645750007267; Thu, 24 Feb 2022 16:46:47 -0800 (PST) MIME-Version: 1.0 References: <20220225002852.111521-1-ammarfaizi2@gnuweeb.org> In-Reply-To: <20220225002852.111521-1-ammarfaizi2@gnuweeb.org> From: Alviro Iskandar Setiawan Date: Fri, 25 Feb 2022 07:46:36 +0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH liburing v1] queue, liburing.h: Avoid `io_uring_get_sqe()` code duplication To: Ammar Faizi Cc: Jens Axboe , Nugra , "GNU/Weeb Mailing List" , Tea Inside Mailing List , io-uring Mailing List Content-Type: text/plain; charset="UTF-8" List-Id: On Fri, Feb 25, 2022 at 7:29 AM Ammar Faizi wrote: > > Since commit 8be8af4afcb4909104c ("queue: provide io_uring_get_sqe() > symbol again"), we have the same defintion of `io_uring_get_sqe()` in Typo /s/defintion/definition/ with that fixed Reviewed-by: Alviro Iskandar Setiawan > queue.c and liburing.h. > > Make it simpler, maintain it in a single place, create a new static > inline function wrapper with name `_io_uring_get_sqe()`. Then tail > call both `io_uring_get_sqe()` functions to `_io_uring_get_sqe()`. > Also, I tested this, the fpos test failed. Maybe it needs the recent kernel fixes? So I assume everything is fine. Tests timed out: Tests failed: [viro@freezing ~/liburing]$ test/fpos inconsistent reads, got 0s:8192 1s:6144 f_pos incorrect, expected 14336 have 7 failed read async=0 blocksize=7 Tested-by: Alviro Iskandar Setiawan -- Viro