From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD8ACC433E0 for ; Sat, 4 Jul 2020 14:26:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9912D207CD for ; Sat, 4 Jul 2020 14:26:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="i0QeSwKp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726800AbgGDO0o (ORCPT ); Sat, 4 Jul 2020 10:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbgGDO0n (ORCPT ); Sat, 4 Jul 2020 10:26:43 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A404BC061794 for ; Sat, 4 Jul 2020 07:26:43 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id h22so15131953pjf.1 for ; Sat, 04 Jul 2020 07:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=U9QsXS+kRzeCiX9GiKwMZX59+CemvQFa4kNqY1rt+xc=; b=i0QeSwKpfBnLqZDEE+3n8uK4jgo3dnM1zlFtetW5SI35raeb/SztFdP0xFjlQT9XTD Y+qO1l8kgxlsSKpVjVkxRzoKg9Oet8ER4hNPdK20HcUJFUl18MiwPitJsfI3nV/Aarqq RN6Sqe2cLgnIYwrsa0248yqKYYWc4XNhRWiDKMamx5vS9gKLog7enKyz2ifw603BrhOH RkyekAb/DdLjPIkF3xvP/ZI6j/9o2az3BtJWbIk8/N5iH4yeJEFzMdihfkLZjN+MxgXT u44orQXtiUvsgRpY7+Sz4Qzsr1QMwSz+COcZT6Hk7sz3Q4ztoTMk4Uk4sWVf15ZnMHXm WUpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=U9QsXS+kRzeCiX9GiKwMZX59+CemvQFa4kNqY1rt+xc=; b=WGf72B1dTwF/sWEN1HnoTuZ9Kby65+H+j0ofZlGc+/mj2hPOfrGwkpmfDSC6ku5TAw PhL/nwIHEdZ/7nytQuHCV4lKUO2oey6v9BN9haQdiTaKoRLhMUyUyledcyIZ9hiTv13v 8/dkD/lxTeOMaIKR6OjD7hLnZQk9DEql+VYy07zkLJiue+MwzTxCefblJPD2hUA1QdSj qGkx3GlaxMTGQ7xWM3R3SaSx8jY1FhmVSoDj22+K0M9jlA+SI7Pqs23A9o18U3l83z0U lTnaiWwrPC9GqEcjwQCycLgguP0q7zHikDwP5FUz1chtlxsNMtp6FdCw1K+Y2b2ND1i6 qKaQ== X-Gm-Message-State: AOAM530O2pzGhu+sFgToX973iT3Z0e2V5mPaCcD9BCEJrZDyJiJo1WoZ 398g1edBKARSq6ml/CrkI8UrbfjX+8ruFA== X-Google-Smtp-Source: ABdhPJz+eGALw4YAijrFErBmFdTDgcI8xt9DyZLyqJHreDTt4W+YLw8D4aUOAelnGa9NqLOygHMGYA== X-Received: by 2002:a17:902:ee8b:: with SMTP id a11mr23625335pld.26.1593872802976; Sat, 04 Jul 2020 07:26:42 -0700 (PDT) Received: from [192.168.1.182] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id o8sm14072685pgb.23.2020.07.04.07.26.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Jul 2020 07:26:42 -0700 (PDT) Subject: Re: Keep getting the same buffer ID when RECV with IOSQE_BUFFER_SELECT To: Daniele Salvatore Albano , Hieke de Vries Cc: io-uring References: <193a1dc9-6b88-bb23-3cb5-cc72e109f41b@kernel.dk> From: Jens Axboe Message-ID: <4ea62f2e-0605-0cea-603d-52b174541acf@kernel.dk> Date: Sat, 4 Jul 2020 08:26:41 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 7/4/20 6:12 AM, Daniele Salvatore Albano wrote: > On Sat, 4 Jul 2020 at 14:00, Hieke de Vries wrote: >> >> There was a bug in the echo server code with re-registering the buffer: https://github.com/frevib/io_uring-echo-server/commit/aa6f2a09ca14c6aa17779a22343b9e7d4b3c7994 >> >> Please try the latest master branch, maybe it'll help you with your own code as well. >> >> -- >> Hielke de Vries > > Yes, that fixed my issue too! So I guess this was just app error, nothing wrong on the kernel side? -- Jens Axboe