Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp782920imm; Fri, 22 Jun 2018 05:18:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKqnoFFHe2XHcKRqv7z1YtSCWgv+NCliLcTcetSg44wbt5RI1rlT3EU6536e7isZ7dWgCL1 X-Received: by 2002:aa7:818b:: with SMTP id g11-v6mr1534773pfi.50.1529669927898; Fri, 22 Jun 2018 05:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529669927; cv=none; d=google.com; s=arc-20160816; b=yJItzBvmYixCTjG+c21hdB25acSquIZRVfBY0mMDe1gJocpaLPohHZuAFHO8jth9BL 7aKpRNJ00AtKr62c8g5Cf3TrutCnLM2vQOHIUDnQZnBQUD8M3MpJhG2k4rg4UmFYOuk1 SqTREkJLYY5zIgJZ/GPfvQZA2d3ojdUjkn9cbV8oLDdy3Dmvhfc67eXH9fOVyBUA2kJz W3Y266Ctl8j8o87bu7XAt956KdzPjUYqYD/4orgDxbqxVGoq26K4M8i292RjtcSVRiOH ZVOeEhSy0DGfLNMBBDrzWvBKKqtPcs+6uOTxp0rM2wvoz+z6MT08NMkdR02SBIC9RN64 U1Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=D/ovnsYceIlfiz4zRFqVxSSz0FpKk9JfhvPvNul9FF4=; b=DPKUObOAw0HvBbb9ConIAIYNU0iO5TIbD/CW67va96M5ZMGmV92n5FIpq+TqKGRyLG FOi7GvJ2Uq/pUPofKKXKpYhirUeRZ32jjIe1loJywAMQNUsWUQjV31QpHPDva03DJXRM WIYgXV6gSnWPokoi0vN0eX/97a7M8rQwTznVA33V2zMPqhDRB7IhpXm7sGGrRYv3VyPh N/R4SL/dCOE2VbTzcCEc3TRgEKWvwrnwPJs9XY0nXZ1hJK0O56nxojwozWQs8WjnbXtf BZydWODn0fyfvBqc2qe9uIqXlyVdabed2CsShW0N0cNwR/l+C26WXfCUng+LAALAL7YO HHyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26-v6si7566819pff.278.2018.06.22.05.18.33; Fri, 22 Jun 2018 05:18:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932636AbeFVMRa (ORCPT + 99 others); Fri, 22 Jun 2018 08:17:30 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:60850 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbeFVMR3 (ORCPT ); Fri, 22 Jun 2018 08:17:29 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fWL0E-0007wm-CC; Fri, 22 Jun 2018 12:17:22 +0000 Date: Fri, 22 Jun 2018 13:17:22 +0100 From: Al Viro To: Christoph Hellwig Cc: Linus Torvalds , kernel test robot , Greg Kroah-Hartman , "Darrick J. Wong" , Linux Kernel Mailing List , LKP Subject: Re: [lkp-robot] [fs] 3deb642f0d: will-it-scale.per_process_ops -8.8% regression Message-ID: <20180622121722.GW30522@ZenIV.linux.org.uk> References: <20180622082752.GX11011@yexl-desktop> <20180622095608.GA12263@lst.de> <20180622100014.GA12425@lst.de> <20180622110117.GU30522@ZenIV.linux.org.uk> <20180622115300.GA14654@lst.de> <20180622115613.GV30522@ZenIV.linux.org.uk> <20180622120739.GA15351@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622120739.GA15351@lst.de> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 02:07:39PM +0200, Christoph Hellwig wrote: > On Fri, Jun 22, 2018 at 12:56:13PM +0100, Al Viro wrote: > > So mark that in ->f_mode - I strongly suspect that > > sk_can_busy_loop(sock->sk) can't change while an opened file is there. > > And lift that (conditional on new FMODE_BUSY_LOOP) into do_poll() > > and do_select() - we *already* have bits of pieces of that logics in > > there and that way they'd at least be gathered in one place. > > The problem is that call to sk_busy_loop(), which is going to be indirect > no matter what. if ->f_poll_head is NULL { use ->poll } else { if can ll_poll (checked in ->f_mode) call ->ll_poll(), if it returns what we want - we are done add to ->f_poll_head call ->poll_mask() }