From patchwork Tue May 23 14:02:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 13252350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC09FC77B75 for ; Tue, 23 May 2023 14:04:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 59111900006; Tue, 23 May 2023 10:04:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5421F900002; Tue, 23 May 2023 10:04:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4304F900006; Tue, 23 May 2023 10:04:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 359EC900002 for ; Tue, 23 May 2023 10:04:30 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E5BB7AD7FE for ; Tue, 23 May 2023 14:04:29 +0000 (UTC) X-FDA: 80821689858.22.98600BF Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf26.hostedemail.com (Postfix) with ESMTP id BEC7614008A for ; Tue, 23 May 2023 14:02:12 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=IZzzlUp6; dkim=pass header.d=linutronix.de header.s=2020e header.b=ybovqQFN; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf26.hostedemail.com: domain of tglx@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=tglx@linutronix.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684850534; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=6aechQjiPvJLATyVluUJ9cxYZe1unyYvMrb8NnTLM7Q=; b=nfFbXxawE9u3zL9KRezxAAR/ksMCZBolv92W5iFfsoukr+KFbZ+2/f6IWiQXLnGnlKHLeI gIbZRTrWCsRXi8Sg3y0j76xwF29YTfOC1XngWewN2IvXnRw7DhB8Z/7r4QP9n6KT5kBEAs tSmJH0P2Ayy+plx4r/dRbIq9eB6DWjU= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=IZzzlUp6; dkim=pass header.d=linutronix.de header.s=2020e header.b=ybovqQFN; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf26.hostedemail.com: domain of tglx@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=tglx@linutronix.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684850534; a=rsa-sha256; cv=none; b=tHcROQDS+ivvx0hpQKC57O23NrfBD9Dl37cSTCL6Ojs8Ey+UCdPnuIq+etoOzlUhh8KLgF g7mvRTz0tAZN2Rqls7NL/fP9CvkYMPFigF8uboHLVkimjVXeFv1IPZXh5SxJE2y0tfa3Kx rkdyfO7KLmdcz3PTlokJZh/6+pj6e+A= Message-ID: <20230523135902.517032811@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1684850530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=6aechQjiPvJLATyVluUJ9cxYZe1unyYvMrb8NnTLM7Q=; b=IZzzlUp6lQvwp7bm9EO5924OKI52ZtkvNZc4CDNQ0Ha1dTkLawE/bbYlEPvZgqMyOnwv6y x2fhcAy1BjxSFvtpUOgnEfT6FakulFHYc7Jox/e+hxmgrjwewgnA2zz/w8AoFim7A6+m4n Hen5J8Pq162anJM6ku3yIj3v1JilFqLzJ2L3+PD8uUg1HrOIXqHc34GjBPNZ6J7EACAX0s ndIKnLxjLBtzyd5+EbaQydiI4qvuoJnFQLM1Tvp0/Da+2FPYAPUCJGTJnwyssXaIWWP96R Bq4dTUZx2XKtD/vG/mK+JoCcxgzIMcc2/GX7kYsxWJ+woRNdErDv0ihLzadqBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1684850530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=6aechQjiPvJLATyVluUJ9cxYZe1unyYvMrb8NnTLM7Q=; b=ybovqQFNxocYK7vcmBuCCbpFpC+vkaev8gEoxoxsZF4Q6zp0+3Hpl7MAFb2IzImBuyELJ9 YqJt4AjUWku28uAQ== From: Thomas Gleixner To: linux-mm@kvack.org Cc: Andrew Morton , Christoph Hellwig , Uladzislau Rezki , Lorenzo Stoakes , Peter Zijlstra , Baoquan He Subject: [patch 0/6] mm/vmalloc: Assorted fixes and improvements Date: Tue, 23 May 2023 16:02:09 +0200 (CEST) X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: BEC7614008A X-Stat-Signature: 83zd93yt6j9pmzg65pbp4nugq5keih7m X-HE-Tag: 1684850532-310412 X-HE-Meta: U2FsdGVkX1/JrSIk30UJMY5McopPxEsE1TLtYPg9D6KUR0+0HvH7tgHJgS6ddwpf7d2Y38fCa9MJ8lqebBk/huS9PKhskpA/XtVbab+DflHwg4oT2ZrQrCs/R6TK/qTJX6sKY6N3uW1BV9JbE00ErjF+Js0NSZQSJ+vDr3emYET3hpcnCA1TK373r7DIQ5cHbBY/Ez5bygSoLw1zo3Qbr1E99ogOEVIVU5hRiY28KuNt0KTgqOanfNm5Oe+ht1sscwJRPPsJX+3gKyN54jbiLCQc1e/1O3BL7tIl1YwII0R/9JTYJGvUR2XXRvMCYRdOcwl4+N/GCwFMvo3zVsJwuMmVA92zzj1JdqFglRI1+bnoutdq0nhircwXhb+mcp1Rm46egIuzvk3nMOEtTaBOE46aR5AlO0O2mxGPjR1WhC9n4yZkyvcf+i0NGHqqamtwb0RMAhT4W1kgS97is7gkEiYRLRnzbK24b2xxnFvEfloKQ0MlZm0mzRyR/FBTuF+V4tGhmqPwFsYggbK/a/k6SwkGpAWHTjzypiTvFtOs26f93A6CEriCKiDRfWtO57dkE4/qcXMAGL7nTP7/ER1pDdt6r+6YEIZ9Rv+6tdE3aMQeq/GxDjsV4yPN1s2fWdcbpV4Nvqvr/L9wCP+J5vrlMzEKji+P4kHTubSYg2Eyrkc9B98Wu4sF/jrm1tWADWHNT9qQlpuO69qbx1mSOIf4Arj15xAOuk3xyvN/33RBJe3/M8xCG/Job161FcRogUylJnASctOTpwl87kfOQ0R7lzrd/xtHxZyMd+3gRKEbnvsvjYbeS6sTvkDCLY/grnRwNEhNn66P6rlKOMivQFTMG908lOFJBIokYqof0vHfPkaC+IXmEM2awfaPdFeDIXY0c4EtiivmRncESy6awI9aVLGZjhmx9kTaRztnujvdx75mibwQ7AnJz72BzgLOKSMFig/WwgFXj8TsA4qAreC XbxUqNkL VxJ8uzhocqhCbIt/j/6AN+dymCdqCkDJwhonsivdRk6Km/ddyHWHq1i7Wg59bjb6ZPKsMPAuKDYrNcH75SI1gmhy2aKFHhWYm26LlLIruxjAz5Trc2GxVn5UxbLFWwLCQmLvq 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: Following up to the discussion about excessive TLB flushes https://lore.kernel.org/all/87a5y5a6kj.ffs@tglx this series addresses the following issues: 1) Prevent the stale TLB problem related to fully utilized vmap blocks 2) Avoid the double per CPU list walk in _vm_unmap_aliases() 3) Avoid flushing dirty space over and over 4) Add a lockless quickcheck in vb_alloc() and add missing READ/WRITE_ONCE() annotations 5) Prevent overeager purging of usable vmap_blocks if not under memory/address space pressure. Thanks, tglx Signed-off-by: Thomas Gleixner