Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10225828imu; Wed, 5 Dec 2018 19:09:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/ViFTvfpy7WEmJYZQpF6BXE1lG+Pggrory+rnJyOgeJJM6yjoazxtQik+4BYIg3gGYnFlPW X-Received: by 2002:a63:2d82:: with SMTP id t124mr22520560pgt.260.1544065786612; Wed, 05 Dec 2018 19:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544065786; cv=none; d=google.com; s=arc-20160816; b=cJGBgRd8FRt/ZsmBuMIUw4pVwVuQGsHpHYy5vaHEvXW3JIMewqoxSv6cE03G0mSzub ZUh77GCIjF6LPIitr6wormpn0vA0xjgvWmUEJf0YeargqkSV0Lha0YkXwYTAHFrNi9yz ffIqWV3w4e73f+PgqCngGsc5pzyMw2TURjV6lXUORoGqjSmUz8yH5bL0Y4u6VFmSkI1S EUD3aepJ7rrxexyO6SWu63II4Uy2FclUfB7LKeHADjgAvVzCx167CaOuWr546BfADv9n sfKBjo0d/z/fig4U5BSJN1NoWl3UKLLc2qXPeJIrdqlM6actLuZM2PROQiCQZKQEn2v1 R74g== 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; bh=iPO3nk4yT08mABe8zMQaaymNPhETI46+NfXzoVIxIGY=; b=B7h/Z2Hz5PNXKos8dX45XAihB/zqdVuV3mNZRlT6aq3TiLOM5y+6YVg4XHh3vlJfGu YkUVEDq++IGNLUv2NAHHhZlqRbRUglc1b8XBnXVm0XgP0pXUo1IAA3Al8w9VeSH0nxY4 TfFYP0suquB9SW14rC8W/mty4n7b1tgvh/crbyaxo6UIquNWBYjmQdWrWtL8wzVFGucf rs5UYjPrHfX7qmYvPoker159ZpTprXxK5uUzR4ytzrPtwCDPTK0jR4Bi44jYVWb2Pg9A yPFaTmu5xwmlUh142Y/HoE+hC5igeByp6xMk3eFY1lxl+XTQi93jaxIDAU61V9SNKOY+ B0kg== 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 w1si19986265pgi.66.2018.12.05.19.09.32; Wed, 05 Dec 2018 19:09:46 -0800 (PST) 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 S1728952AbeLFDIa (ORCPT + 99 others); Wed, 5 Dec 2018 22:08:30 -0500 Received: from mx2.suse.de ([195.135.220.15]:33878 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727695AbeLFDI2 (ORCPT ); Wed, 5 Dec 2018 22:08:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0E607ACAB; Thu, 6 Dec 2018 03:08:25 +0000 (UTC) Date: Wed, 5 Dec 2018 19:08:18 -0800 From: Davidlohr Bueso To: Jason Baron Cc: Roman Penyaev , Alexander Viro , "Paul E. McKenney" , Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [RFC PATCH 1/1] epoll: use rwlock in order to reduce ep_poll_callback() contention Message-ID: <20181206030818.vu5g3edwl67tg3lc@linux-r8p5> References: <20181203110237.14787-1-rpenyaev@suse.de> <45bce871-edfd-c402-acde-2e57e80cc522@akamai.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <45bce871-edfd-c402-acde-2e57e80cc522@akamai.com> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >On 12/3/18 6:02 AM, Roman Penyaev wrote: >> if (!ep_is_linked(epi)) { >> - list_add_tail(&epi->rdllink, &ep->rdllist); >> + /* Reverse ->ovflist, events should be in FIFO */ >> + list_add(&epi->rdllink, &ep->rdllist); >> ep_pm_stay_awake(epi); >> } This should probably a separate patch as it fixes the ordering, regardless of the rwlock+xchg optimization. Thanks, Davidlohr