Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp758574imm; Fri, 22 Jun 2018 04:59:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJx4FpkhgUlyVKCrFo4dkJorPGi5GLu4b0MGW2HjNvYMlK6MPlrUhZQXGMkbHLoweCXLq3R X-Received: by 2002:a17:902:8f82:: with SMTP id z2-v6mr1376676plo.203.1529668764606; Fri, 22 Jun 2018 04:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529668764; cv=none; d=google.com; s=arc-20160816; b=uJAW80g/4zsdQPMDta4GXMtbh2LU2/HjUV8GihTanV8jVwwvrvMnGRCGytsaw1x95f YIiHApAkmXklioQmnWKtkFpMkWgxH0p/dJhRx114YInlNsAbO5AclAtxFi45PXr4SCGH c+9O+anVWMLC0ynEIgJdBEnLOgf9QRrx/StdKqjY/q6P906eyfljEw73AlkmNw5AfmL1 uM7wAmcnDC8Bn8P+oeQ9l3Mt/86sEQV18x6w1ThQS4Yc3IDT3tQ4X+r7DHuMZ+wSP9zF 7IfNYwv/mgQpB76zYL79N6tPlpfN/0n2uV/9DQPt3GKadimyfX8VbxFu6xP/ir04/ApJ iq2g== 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=V1vRQNx4UZUaW9pwm3Oc98JSU8KumbBzZnsafC/53+o=; b=QD3q9eCHtMuIUJ72kGVTY5cZaOBmUOd5K9B8h8J9cGFumKGoZkb/40D3VhHwvXjUoR Tpj4xbzEDRF7H5gPInFAovDKxl1ZYx9eKW/cPsOTHSwDkfqGVOtLdChhDh4CoxaTHoQK k6nXaoelp3S9cj0+wxJjlhlG4YrGMWpne8XCfzfl70WyqVqNksHbED9gsf/KZoaBEJQ8 H8sJHmL3uuVPnhJGqKMw9u4or/gSBzGxf2SrxmV4oI7eaqctTTWXxq+h8/ARUw/ocW2V bQLW0qa1TUqZxFLeLa8ZgqT13VwMC4eKFlMvtndJjMBBn0nX1K9//kH6kbln3PC1bsYC RoQg== 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 f34-v6si7068607ple.52.2018.06.22.04.58.59; Fri, 22 Jun 2018 04:59:24 -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 S1751329AbeFVL6S (ORCPT + 99 others); Fri, 22 Jun 2018 07:58:18 -0400 Received: from verein.lst.de ([213.95.11.211]:56210 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbeFVL6R (ORCPT ); Fri, 22 Jun 2018 07:58:17 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id E57E868E45; Fri, 22 Jun 2018 14:07:39 +0200 (CEST) Date: Fri, 22 Jun 2018 14:07:39 +0200 From: Christoph Hellwig To: Al Viro Cc: Christoph Hellwig , 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: <20180622120739.GA15351@lst.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622115613.GV30522@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) 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 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. > > Then replace ->get_poll_head() with file->f_poll_head and > see what it gives. Working on it right now. Works so far except for the busy loop case. I'm looking into a separate methods just for that as a first idea.