Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10519450imu; Thu, 6 Dec 2018 02:29:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/G0FNakZmKN0DrW5p0S3oZsah0RHDsVWYU7XeTIQnG0LZih/pczYj/7XNdt41v6H5gi4x X-Received: by 2002:a17:902:f24:: with SMTP id 33mr6404196ply.65.1544092199128; Thu, 06 Dec 2018 02:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544092199; cv=none; d=google.com; s=arc-20160816; b=VGworDl+GRN6mDJzU0JoMobn6FbJjGegArlCImdSrPWv1K/yZAp6cnrVAdrvgwvq/S eKbeOli1dxd24RZFVUIGeSjqfT87eT49yhHaMHDRs7rfeYm2Ua/1jHWFia/gFngry/1Z P0qOWJL4HL2e7x/kLDlHsuMZDMDdOXIZkN+770vI/ujrbbhotGNXH/DDMirageC/iP/I XYJX+nWGm/u075FXBbgtwU9PyX1+/XT0gba5bgKRpdx/h++qsm6xXK/z6WiL/TsgSU4q X5A1iH5o5WSlzroI2fo8yXASEEDAW3LNfok/TedAUg/YFmGFkzgtw3glc4efaVOieWkO 9EZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=fw9PA20Db8jzWE78dk5xziCdmer0pDth1EYGXnoJzUg=; b=atTZBk8wwqdYBnJE7G9DfcXz5NBQ6TNCxnMetkoNxoVTtmn84NKRkaKeNwmPR03cG6 XMWIbCqzCFaB3Jvz+vIRumMVGCxcadSpXA1w6zZYmZiyQeuKLTGXoOMb8UM4DY2xoKv6 bht8bF+wvDYRtPx6jRAU1buEv8yV1/zrbh3HxjaiY2HOrNFb6lq1SSEjDDxx+b4+Yhvh UhshyvEVi/YYojWiP5wDaVpANzekH0h1Q1JyAGqIKcAZbNvir170mnhKiiVSf6v2cxPs /smpymvQURGtBGEIghN+IM7TU2YaVHIlyxwk01y5HP6K8UbcirpVxhFrORpMGL7lKMe2 BW1g== 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 a20si23844013pfh.163.2018.12.06.02.29.43; Thu, 06 Dec 2018 02:29:59 -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 S1729456AbeLFK1j (ORCPT + 99 others); Thu, 6 Dec 2018 05:27:39 -0500 Received: from mx2.suse.de ([195.135.220.15]:39746 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727575AbeLFK1i (ORCPT ); Thu, 6 Dec 2018 05:27:38 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1A26BACCC; Thu, 6 Dec 2018 10:27:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 06 Dec 2018 11:27:36 +0100 From: Roman Penyaev To: Davidlohr Bueso Cc: Jason Baron , 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 In-Reply-To: <20181206030818.vu5g3edwl67tg3lc@linux-r8p5> References: <20181203110237.14787-1-rpenyaev@suse.de> <45bce871-edfd-c402-acde-2e57e80cc522@akamai.com> <20181206030818.vu5g3edwl67tg3lc@linux-r8p5> Message-ID: <51d9ca4acbbdb17a390383b839f1aba0@suse.de> X-Sender: rpenyaev@suse.de User-Agent: Roundcube Webmail Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-12-06 04:08, Davidlohr Bueso wrote: >> 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. Yes, should not be a part of this RFC. Thanks. -- Roman