From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38B5FC47255 for ; Mon, 11 May 2020 07:31:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CC4842098B for ; Mon, 11 May 2020 07:31:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="P8dhMvRZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC4842098B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2D98390000A; Mon, 11 May 2020 03:31:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 26309900006; Mon, 11 May 2020 03:31:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12B4490000A; Mon, 11 May 2020 03:31:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0240.hostedemail.com [216.40.44.240]) by kanga.kvack.org (Postfix) with ESMTP id EC680900006 for ; Mon, 11 May 2020 03:31:54 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B1002824805A for ; Mon, 11 May 2020 07:31:54 +0000 (UTC) X-FDA: 76803618948.09.pot07_2d484f2da5961 X-HE-Tag: pot07_2d484f2da5961 X-Filterd-Recvd-Size: 3144 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Mon, 11 May 2020 07:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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; bh=UQU0B9NH1zcG5ih3frGbvcAoJriOpbADo62D6un1kGw=; b=P8dhMvRZsO8HVSTS2DKAhF4+Dz l3+qc9UNmKUvRNxyjm1fe3xdICnaYrQKfmOFATzkAIA+m/55V7+aGGbsb24aXS93rtFf+TDD+3h/j +WcquBE0T/zxLzUhRauRp/opgqKE8XryQTA+G8Jmp+J5XSJsHCIjLysjbehvGdp++fWujWmpOufCo Dcht8qJgNXr3YA1l6sNQunsdCYslASmkMQkVQHwf7C4FfAK3lWRfXTjd4ogg08M0tlXXtbM+P+kwF 6tRNzMrRnuylt7QDtGn75SzZsYyEcmnzBnt0g5sDJk7XFLqH2SdQm72ztyhSO6ysYzo/nYNoAMH1y PSfnKYpw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jY2uY-0006aH-EN; Mon, 11 May 2020 07:31:38 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 94E02301A80; Mon, 11 May 2020 09:31:34 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 792BB2077D3FE; Mon, 11 May 2020 09:31:34 +0200 (CEST) Date: Mon, 11 May 2020 09:31:34 +0200 From: Peter Zijlstra To: Matthew Wilcox Cc: Joerg Roedel , Joerg Roedel , x86@kernel.org, hpa@zytor.com, Dave Hansen , Andy Lutomirski , rjw@rjwysocki.net, Arnd Bergmann , Andrew Morton , Steven Rostedt , Vlastimil Babka , Michal Hocko , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 0/7] mm: Get rid of vmalloc_sync_(un)mappings() Message-ID: <20200511073134.GD2957@hirez.programming.kicks-ass.net> References: <20200508144043.13893-1-joro@8bytes.org> <20200508192000.GB2957@hirez.programming.kicks-ass.net> <20200508213407.GT8135@suse.de> <20200509092516.GC2957@hirez.programming.kicks-ass.net> <20200510011157.GU16070@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200510011157.GU16070@bombadil.infradead.org> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, May 09, 2020 at 06:11:57PM -0700, Matthew Wilcox wrote: > Iterating an XArray (whether the entire thing > or with marks) is RCU-safe and faster than iterating a linked list, > so this should solve the problem? It can hardly be faster if you want all elements -- which is I think the case here. We only call into this if we change an entry, and then we need to propagate that change to all.