Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp788512imm; Fri, 22 Jun 2018 05:24:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2sS3sF36/dkPJk1YqxJr26j+iT/i/57SDNgssbjCwFF2K6YULKilKHYIO/uOWdAV6qURP X-Received: by 2002:a62:249b:: with SMTP id k27-v6mr1533870pfk.143.1529670277442; Fri, 22 Jun 2018 05:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529670277; cv=none; d=google.com; s=arc-20160816; b=fYu+UjpUMib393Vo2dEQrxAzMZznrONFdD1aemHFw3QzlPZYHFCFVJY71cfwqJFJqi fWUR+gO8hFAI9NYwIDUhnCCf9VkMNrddAQDK7CvurpZazEj/8MkmaY7JJ1kpD5kf80W8 k2KxJlkZHmdUre4sI9fOe9zyPUHLcgEUOhpeV2Nj0kolBJXgCatRJ+G+TGedBw63qnUA fSR0Wngk0Tp2lMah+6JAzH1l/rEpTq8yWEbuvFzQi/hvNyyMgAyc3O4lxvEj+AcQ+3kX QyhzoOP6EIGXEvjw58ZK1XGw2OAv7Xj7RrlQSX0/MmYXkZTemu7dYp+tgururKrrKiUo /iRw== 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=kKu3W8tPQLua6NS5MSDcGf7NPwaoHdRn4IvaGvNqrYM=; b=GgFHWemMT5JcQMZQmkyzSoVgd0Uj/bvE8LQq2f6posiXCCHQvsiKStik8qJxwObf5L PIlpaf7U0eMRRWbGQ+T1Uk+fHHvIdcxdRx0+cbP16wJ5Fb7+ZRKlQycqoLYgVVi86dXJ iHTKVULlhKQdctUyp2lRjhHPXqROtL85FhR2cAqrP29AOMQ9VnIG6hYzIMn26B9kHpDY c4JrjOcWUUYAYFOeYX1o+qaRf3mhswXqi6GV73szfGrDp3Pp8Bb1OLB1xejXJ6qCOd+R zx1DJGeCboDlSuSaMIkjDbSkaBYu1dLCVb7xag8Br/HRm3rjenQ6RzUQBwE+IezCr0z2 +j9g== 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 h5-v6si4318671plr.268.2018.06.22.05.24.22; Fri, 22 Jun 2018 05:24:37 -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 S1751782AbeFVMXn (ORCPT + 99 others); Fri, 22 Jun 2018 08:23:43 -0400 Received: from verein.lst.de ([213.95.11.211]:56321 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751209AbeFVMXm (ORCPT ); Fri, 22 Jun 2018 08:23:42 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 8EDBD68E45; Fri, 22 Jun 2018 14:33:07 +0200 (CEST) Date: Fri, 22 Jun 2018 14:33:07 +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: <20180622123307.GA16699@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> <20180622120739.GA15351@lst.de> <20180622121722.GW30522@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622121722.GW30522@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 01:17:22PM +0100, Al Viro wrote: > > 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() What I have for now is slightly different: if ((events & POLL_BUSY_LOOP) && file->f_op->poll_busy_loop) file->f_op->poll_busy_loop(file, events); if (file->f_op->poll) { return file->f_op->poll(file, pt); } else if (file_has_poll_mask(file)) { ... } returns whatever we want part is something I want to look into once the basics are done as it probably is non entirely trivial due to structure of polling in the low-level network protocol.