Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1647417pxb; Fri, 6 Nov 2020 15:39:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf4onZae9JcJjpLqtdUiTdkBNXP4NUv0uUiZ2Ehw7pd74Kkem6TiRajSulOtLE3/ZfwerE X-Received: by 2002:a17:906:868b:: with SMTP id g11mr4555824ejx.263.1604705973921; Fri, 06 Nov 2020 15:39:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604705973; cv=none; d=google.com; s=arc-20160816; b=towW2xtBnzXHNKCUYh0/doE5FbzDt+DHLz/cd1kv0Rd1V4j+MaTDoHhWSsYKb5lqBH /UtEMz2EQ2rE/88ft4b8vJdO2WOoRK9EmM3Y1Axv/QT/hIiwYSoX7avHXTmFERk3Q6eN SaA2JlvRDmD9DGlKPR8RkDcAy+uJ8ck8FHx9i2+h2SB/B3ZBuOBxO4vdqY7oknquV42z qFv/O78Mxf/L6piW44wS+c0V1XaPir6eBYm4iyDOiS8tLGE3APJJrzuU7Ttk8Vsxi/FM 9UFBnMdSPJtew5zI9PRpRF5BJuDGLcoCw8Q3jiS24PgNcVHqYv7r0K5LS6dy7TBNhoEz mNtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eMoRYBx4DAMN87q/Qxn/vkeSV0JGOokfdGoi2qdQtlk=; b=0MF84QVjSWTwC2XGTqxZ3SGGrSEkiz7f8BSL4JQMp5TEWUvXmv+i9bLMFWeifXx/Mg q8/KzSjko4BFQeWzKkKFmapzcnB6MlxVpGzAtbNiJhcyGcoOSoRzqXTn6uszq+jiYDGd 9AOYrm44VQG0cbw4243lr1BMH5rttR9TGcLfYb+MrHqcRYs5rGIAT+2op3fkxvFUJTA/ UVeFr2xevvkFXBRmGWT4X+ris9WZWX7ag3Z6RmqbrEg/IvaMZmC8Cx7QBWHLWonSgEAG PmQBj5KWRnP8N7TFLxyRBoTqwuyxvD01oUOwStzzQvWEC0sbtl2bwE8qHfi2udtzXOw5 so/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=VQ+L+ATY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt15si2057352ejb.170.2020.11.06.15.39.11; Fri, 06 Nov 2020 15:39:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=VQ+L+ATY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728489AbgKFXfp (ORCPT + 99 others); Fri, 6 Nov 2020 18:35:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728214AbgKFXfp (ORCPT ); Fri, 6 Nov 2020 18:35:45 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4F5CC0613CF for ; Fri, 6 Nov 2020 15:35:44 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id v18so3232498ljc.3 for ; Fri, 06 Nov 2020 15:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eMoRYBx4DAMN87q/Qxn/vkeSV0JGOokfdGoi2qdQtlk=; b=VQ+L+ATYA/FZIZUCETHW1K7D8w79F/MTq60EL9Ec3V4gnL9IJk8F3eb9idwCVvlRrc 8Ei7CiqYZhn9fJsh+UeL/UiWhSlZBoGexP7WNISG75CFbsrLzos5TPu5Mh5YQxnnOPjp G1doOAZS+cP9vHOV84ZoEALRhSaqHK+v2uXvA= 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=eMoRYBx4DAMN87q/Qxn/vkeSV0JGOokfdGoi2qdQtlk=; b=E03MNvN3bjyLvJoNNQLl1ASSuW86PiqA0+KvYuA6Xsvb+lZt0FmeEth41TuqBKMWVO 9JFWhH2BdmOhSYYjouwmnetOZC0Qg5BdLFN6E/MxcCO9R+1z8JwDFvHeI53t9S6/Ce+M Vu4TyYDHYUBNY+dfrCrmWTA60lPKaDOYuHkmJWSuEACH5B9CjbNVTyuZ//o4Wc/DKNxz ZhWUOqPzXYjYf5CSMneAD/HgA0eTQ8Xn7KA4BKCCwZx/iCZIxylLONG+COdWMGcXXlmv QKB/hKqYyRsfiHblx1h3EAC3XRmdZzDTwWI6hgGrzHqHXwWJmOJOjLq/qa5K0B3f/xsK hhUQ== X-Gm-Message-State: AOAM530OcxOKrGPz+8Vmhl6pS9Coz+9eMPjK+GcE78k+0lq5lpLTW8iG zjjj8ukcxR9L4O0C2gPTE9aBwCCxxC08Mw== X-Received: by 2002:a2e:b5b9:: with SMTP id f25mr1694646ljn.309.1604705741906; Fri, 06 Nov 2020 15:35:41 -0800 (PST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id o3sm248623lfo.217.2020.11.06.15.35.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Nov 2020 15:35:39 -0800 (PST) Received: by mail-lf1-f47.google.com with SMTP id s30so4246279lfc.4 for ; Fri, 06 Nov 2020 15:35:38 -0800 (PST) X-Received: by 2002:a19:4815:: with SMTP id v21mr1885811lfa.603.1604705738619; Fri, 06 Nov 2020 15:35:38 -0800 (PST) MIME-Version: 1.0 References: <20201106231635.3528496-1-soheil.kdev@gmail.com> In-Reply-To: <20201106231635.3528496-1-soheil.kdev@gmail.com> From: Linus Torvalds Date: Fri, 6 Nov 2020 15:35:22 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/8] simplify ep_poll To: Soheil Hassas Yeganeh Cc: Al Viro , linux-fsdevel , Linux Kernel Mailing List , Andrew Morton , Davidlohr Bueso , Eric Dumazet , Willem de Bruijn , Khazhismel Kumykov , Guantao Liu , Soheil Hassas Yeganeh Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 6, 2020 at 3:17 PM Soheil Hassas Yeganeh wrote: > > The first patch in the series is a fix for the epoll race in > presence of timeouts, so that it can be cleanly backported to all > affected stable kernels. > > The rest of the patch series simplify the ep_poll() implementation. > Some of these simplifications result in minor performance enhancements > as well. We have kept these changes under self tests and internal > benchmarks for a few days, and there are minor (1-2%) performance > enhancements as a result. From just looking at the patches (not the end result - I didn't actually apply them), it looks sane to me. Linus