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=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 B54AFC4727D for ; Fri, 25 Sep 2020 23:40:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6B7D82083B for ; Fri, 25 Sep 2020 23:40:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DwXuIxH8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726687AbgIYXks (ORCPT ); Fri, 25 Sep 2020 19:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgIYXks (ORCPT ); Fri, 25 Sep 2020 19:40:48 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B6E9C0613CE for ; Fri, 25 Sep 2020 16:40:48 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id 19so3634415qtp.1 for ; Fri, 25 Sep 2020 16:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wbTW0N3pi00kDwcqmPd1UFIZvUvq8Ftlt0qpbFDenUI=; b=DwXuIxH8zb2QzBgOtcPoqKXfqplqsXOlTr+dswWKq1bXytRtsLo/aW9sEYLPWcq6ao wxubO5OmtQ/OpOta0M/LcGE3L5ln2TodASyANzDVVZZ3ds+eDf2uVo3FxMcNWSin5/4h 81oqTaR1rwsQ/pGB48gtoPpVvFmF1jXAg4Ms/5RTuTiZrdz5inasXrs1tqg9Yjxl6H26 CybgdaOhno8yPtaqXvMlEXnEEf7A90yCDrxaVsGtnisUYB0JJ9KRpfx4XB0pYbLqO0Yd SdIJjt3ILufF5zMGpjo8X90WCkfaM676yoaoe6qWGp3SfA7czOo73JJzefAZx6/cv7gs Q31g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wbTW0N3pi00kDwcqmPd1UFIZvUvq8Ftlt0qpbFDenUI=; b=DfmoXlEuvPm4YJLpEtIWYzPhKHTtL6+XuuZmQRkeLV/lsA/EYvP/eLHrlE46+/e7hT FJA5ayvDnO/kninLEGN9EdEFJLQwaCPXcQflWNCBM/fAoTadwyGHnvtHSeeldMUVudqb jsGkYSTle2m+iIhu2hVLYYafpOrk8Km8ndMp2xH0GtrY2qsMg93i8n4P7g5wK74DObnT o/g8CRiJkBwuynWQFPHYUIBNyZxVV6CuQ6ZoBnYJIONVe9ZcXRdIKQmJbxWajAALkrpt 4gLj0LeBwgZaQchHwLfEU+6UYhlss7BbLVv+jr1isr65Knu6RLUadSZUBrR6oviUeIhq C1Aw== X-Gm-Message-State: AOAM531T0nfgHH47ZbeemBovPZAdmqWhM/34o/rca/F4LVQntsQI8VQU lhO73kwCMfA+26AVlJsddCEBBo1bAJP2ZCE0dsCo0iwc+s5SPw== X-Google-Smtp-Source: ABdhPJxXHAt+nfhvgRWLjgw5wZgd6eA6NVp8c/9aKZtbAcZEj/3CiXz3q7h9By+R4oUs0VHTNt0nzQgok6hXW1KLVkw= X-Received: by 2002:ac8:3713:: with SMTP id o19mr2215692qtb.256.1601077247610; Fri, 25 Sep 2020 16:40:47 -0700 (PDT) MIME-Version: 1.0 References: <9f1ac2d3-6491-bd5a-99ea-8274a8a19e2b@kernel.dk> In-Reply-To: <9f1ac2d3-6491-bd5a-99ea-8274a8a19e2b@kernel.dk> From: Josef Date: Sat, 26 Sep 2020 01:40:36 +0200 Message-ID: Subject: Re: SQPOLL fd close(2) question To: Jens Axboe , io-uring Cc: norman@apache.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org > If you have a file registered, that holds a reference to it. So when > you then otherwise close it in the app, it's similar to having done > a dup() on it and just closing the original. So yes, this is known and > expected, I'm afraid. Thanks for clarification, the only way to delete the file registered reference is to use io_uring_unregister_files right? I don't think that we can support SQPOLL for 5.8/5.9, but at least for 5.10+ :) --- Josef Grieb