Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4592615iob; Sun, 8 May 2022 18:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLSW/5s3Ew7J7F3vdgssuW1v1i0WjjAF5UvmceQcT3erLjqkLF1ttYHDbZ9YJzAgScCfWJ X-Received: by 2002:ac8:5a10:0:b0:2f3:dd26:d138 with SMTP id n16-20020ac85a10000000b002f3dd26d138mr1005054qta.405.1652059919187; Sun, 08 May 2022 18:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652059919; cv=none; d=google.com; s=arc-20160816; b=emZaH5w7Ox4Rwrfmvw2N/6I9401ENkjCUX6EWgW/+4F4iZUWoWtf8u3SoU0GzETZUS 781h/RID0rmVFTtec5/xknUz6RFuT0gBM7ZcSgQuq68JKNxU/65dNYaCFOWhR6QZ8fX5 0kuTrJsQigZmmQ9bkIZDAGlF0fRDriZyA/4oFZSs8ISGZhjw21/iMOKhdtEiHt3C8fmi p6FQAytBKFpyok8ELV13kgg/vsdaa5p2muczXJ1jHFrFsz0m7iKxd/JmVHrGiPMSn9rt oCwD/axGUjFPdd9oe3EHZRQUX8i4i1oB7QD+7EzcEBjKdGjug7ILcWASJbCxHtZpBMN4 q2JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9CgvYRHO+zyjILbsXpuCYz5kUi3xutsr2ZbyqD78JvA=; b=ybfvzO8wKDlFBEGbXR0YB0x7qBGqCiguYSoXpe/7RoSi9XfxguaS+UmgLLiksny3N7 jAPjJigNxMvzrm16ZspAzOgfus7pRAT2m5eVsuc88aSW2fcqgQaMRwWcWR/K4o0YwVzh FyslGhOj+HcGfSHkrFbDc7wG0Sqsy91mqmRAcFYrqRbKlgFvXvO8XCg13icOmw/ZfJP+ YcoK0tuvyfjJp6iXYXiS5t9RQbWCpnSQW8fCY35kEWy1mOyKoaBsMUr+Ki/RoBgAlrPR TO4P7gnyxlFupW3Hlfrra+RxKM7UIU7jAuM9gbjdB9W6FZ6OhHkT+2n2qh1o27vXGGDF OTKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=yj7HlQlC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w1-20020a05622a190100b002f3ddb04adcsi198298qtc.196.2022.05.08.18.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:31:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=yj7HlQlC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1F0813CFF; Sun, 8 May 2022 18:31:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233157AbiEHMxT (ORCPT + 99 others); Sun, 8 May 2022 08:53:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbiEHMxS (ORCPT ); Sun, 8 May 2022 08:53:18 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 603BCDF20 for ; Sun, 8 May 2022 05:49:27 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id k1so11551018pll.4 for ; Sun, 08 May 2022 05:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=9CgvYRHO+zyjILbsXpuCYz5kUi3xutsr2ZbyqD78JvA=; b=yj7HlQlC9P/3bif3QvZacoMfkS8sumx0VL9jmM+inS90KT1x4FNGuHZ+EY5D+NR407 73/EfgTOpZAjVrPhAXM0Zk3NdZEwkX7Jt3e3GjnvQ2ztPSXecKFakNVgFEK5FM2sTvs1 ldGVXJ1cYGpxvutBdDFsDCsTJ1Eyn86qZ7QO2ASGExIUiHap2IrqFRszKB1CIz/5ZWke 4MwpsBWsxQetTEEYhdq6jNB4xmgeMDC0NTXnTFvT0hYRijNZFo8atgdiIsr55Y/rrbBL V0U1wob3zNDWadtMs1T850NOFYPqTwmSMpqnziPlh/KCC9qqD57b1YLMjlOUAFbLeS4L 3TjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=9CgvYRHO+zyjILbsXpuCYz5kUi3xutsr2ZbyqD78JvA=; b=o2DFpCDQFsfnn0drLJuMJSWU8Ut+3864IpudgVxw7bCu7cGd0maRQN8GOBD7mbs94s EgKGezDhXt4ehlGUc825tr0AMWMjXwhrh4yzxyTt4CH3IajlvvQJcdBWLQAJfoNs0jE2 sKOk0cF+C8PUjCOf1an0Lex+dU8JD8bHP0dMHtZ+97CVzG2yFrQRVYMbg2DUFs6euy2A ronqKdP5Y5IwGrCmZVKkgnrAwZq0iHTt9HpxgoXEc8BVImBiRm28iMI6x73skSLej2l3 R1QwfPpNJHhDpnNrmmR7CLrSbAAVa8Eifp8qJLPJBFjp4itZFIcCkcFyORpqtyComWNG lqyg== X-Gm-Message-State: AOAM531G7TFUvrI9Qd9pY+0e2WkDsqf6ai67ouQA7NoY85Xb6U8ZGbTJ Sa+LW4vFJmz6Vb1wZNkQN9H0i9vZZM0iqJBE X-Received: by 2002:a17:902:6b0b:b0:158:f889:edd9 with SMTP id o11-20020a1709026b0b00b00158f889edd9mr11993926plk.122.1652014166759; Sun, 08 May 2022 05:49:26 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id t3-20020a17090aae0300b001d5e1b124a0sm10756372pjq.7.2022.05.08.05.49.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 May 2022 05:49:26 -0700 (PDT) Message-ID: Date: Sun, 8 May 2022 06:49:24 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 0/4] fast poll multishot mode Content-Language: en-US To: Hao Xu , io-uring@vger.kernel.org Cc: Pavel Begunkov , linux-kernel@vger.kernel.org References: <20220507140620.85871-1-haoxu.linux@gmail.com> <305fd65b-310c-9a9b-cb8c-6cbc3d00dbcb@kernel.dk> <390a7780-b02b-b086-803c-a8540abfd436@gmail.com> <0b52bbd2-56de-c213-df3f-73f0f83a1f3a@gmail.com> From: Jens Axboe In-Reply-To: <0b52bbd2-56de-c213-df3f-73f0f83a1f3a@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/7/22 11:21 AM, Hao Xu wrote: > 在 2022/5/8 上午12:11, Jens Axboe 写道: >> On 5/7/22 10:05 AM, Hao Xu wrote: >>>> But we still need to consider direct accept with multishot... Should >>>> probably be an add-on patch as I think it'd get a bit more complicated >>>> if we need to be able to cheaply find an available free fixed fd slot. >>>> I'll try and play with that. >>> >>> I'm tending to use a new mail account to send v4 rather than the gmail >>> account since the git issue seems to be network related. >>> I'll also think about the fixed fd problem. >> >> Two basic attached patches that attempt do just alloc a fixed file >> descriptor for this case. Not tested at all... We return the fixed file >> slot in this case since we have to, to let the application know what was >> picked. I kind of wish we'd done that with direct open/accept to begin >> with anyway, a bit annoying that fixed vs normal open/accept behave >> differently. >> >> Anyway, something to play with, and I'm sure it can be made better. >> > Thanks. I tried to fix the mail account issue, still unclear what is > wrong, and too late at my timezone now, I'll try to send v4 tomorrow No worries. IN the meantime, I played with allocated direct descriptors yesterday and implemented them for openat/openat2/accept: https://git.kernel.dk/cgit/linux-block/log/?h=fastpoll-mshot It's independent of multishot accept in the sense that you can use it without that, but multishot accept requires it with fixed files. -- Jens Axboe