Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6305134ybi; Sun, 21 Jul 2019 14:32:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7ORVo11z3n+imoUDzxGNs5QdYWPbbTymMW6BaIN2uTWKI9CnnELGEaeLon24jpnA5jhMp X-Received: by 2002:a65:6294:: with SMTP id f20mr70035260pgv.349.1563744728749; Sun, 21 Jul 2019 14:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563744728; cv=none; d=google.com; s=arc-20160816; b=UdbM9N66LWpTNWnbTVq7jR0RozTKXehlhvSTDT92wB3dE7HS5/RWtQ+haKHWfwODP/ 7YMjBT0CJ++e6OHm/Qd3gl4tPYba198ZGIoknIDskiZl9yqhegqlhLipgraJ9jjvR0Xe unTlR/z0/bDngnO21BLfluAEA6qtJWPnLmYWCikiJRE6pPBXg8BVRTQbd5DDyhdTOvHH apYDSFocnfgJB4HSPfKI8FSV9lKWxd11jjRCBaZaZO6DKUlt3Cjdnyfz+608W1mIfQB4 j9aPQ3Mo1XCyAsOH9F8Ut4fKFw3YZzI56M7I6s7a0X+qEE8IflqLW5+sQv0NT6WVqvLZ TE1g== 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:dkim-signature; bh=m+ymzWwJthSyMsIrAZa5UVM+lb+OeBZIRhgzMglbtss=; b=c1+WmGyhpoWwZEJh8nRB7++W6YAYy11kJ8yAZuZtFIZvBJg3FdaymuThWDHVgbLvvz FB8eKgBznqij4PEu09QKapmbesVz8mfOV6AdHjJDR17JrpN0DC3a1BzRTh0g18L1Kg7W 1fNK3amXSorUhllSIGN9hxf21Fwv8TzxoEVZqzxQ/prDu1VVL74gzJgORcYn29Uc2e6h cq4t+roRDBfF6tltuXf+ugZiLVZe372nhpvPdPnlb7wxW2jIavTT74lhWCd85Ta58SXM aLoOK0chXBVynjmLI9LIs3RRHIHmrF/BSlTO7Sct5j9pECAFF3In1AUk0qRcdVrSjk5g msJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hOxpb6w1; 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 r18si27599852pgl.173.2019.07.21.14.31.53; Sun, 21 Jul 2019 14:32:08 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hOxpb6w1; 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 S1726721AbfGUVJG (ORCPT + 99 others); Sun, 21 Jul 2019 17:09:06 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36938 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbfGUVJF (ORCPT ); Sun, 21 Jul 2019 17:09:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=m+ymzWwJthSyMsIrAZa5UVM+lb+OeBZIRhgzMglbtss=; b=hOxpb6w1+7znVOU/LYcc4TCsi AU34x9DctQ72CdFA2SbXaxcS1FbGoIVqML8MnXJToxuML6SZi8848XN5DS9AVL0Z9wQgsUK2KRVeI Wz7K+4anU/cZMplgZTFu8tTBeFDdLQlK+4EzYTlmpy18b/zeZMWzGbE65oBnEfAvV8IKyijqNY5Kz B1UEaYbbU2KZci/M3mW5svS0g1vE2DZjApbLyiTi9LrqIkXtIvvBRXC3Hu/WKpOP6J4pBN/jLFKkT nwP8xiN5kn2rcd2USEhk/o97boU6FKRBx8S2WJNurFZKhP65CJgPUJfkVoDYo/kddkcDF3S5fnxNx q3ODFsGGQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hpJ4P-00031q-HE; Sun, 21 Jul 2019 21:08:37 +0000 Date: Sun, 21 Jul 2019 14:08:37 -0700 From: Matthew Wilcox To: "Paul E. McKenney" Cc: "Michael S. Tsirkin" , aarcange@redhat.com, akpm@linux-foundation.org, christian@brauner.io, davem@davemloft.net, ebiederm@xmission.com, elena.reshetova@intel.com, guro@fb.com, hch@infradead.org, james.bottomley@hansenpartnership.com, jasowang@redhat.com, jglisse@redhat.com, keescook@chromium.org, ldv@altlinux.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, luto@amacapital.net, mhocko@suse.com, mingo@kernel.org, namit@vmware.com, peterz@infradead.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk, wad@chromium.org Subject: Re: RFC: call_rcu_outstanding (was Re: WARNING in __mmdrop) Message-ID: <20190721210837.GC363@bombadil.infradead.org> References: <0000000000008dd6bb058e006938@google.com> <000000000000964b0d058e1a0483@google.com> <20190721044615-mutt-send-email-mst@kernel.org> <20190721081933-mutt-send-email-mst@kernel.org> <20190721131725.GR14271@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190721131725.GR14271@linux.ibm.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 21, 2019 at 06:17:25AM -0700, Paul E. McKenney wrote: > Also, the overhead is important. For example, as far as I know, > current RCU gracefully handles close(open(...)) in a tight userspace > loop. But there might be trouble due to tight userspace loops around > lighter-weight operations. I thought you believed that RCU was antifragile, in that it would scale better as it was used more heavily? Would it make sense to have call_rcu() check to see if there are many outstanding requests on this CPU and if so process them before returning? That would ensure that frequent callers usually ended up doing their own processing.