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=-6.3 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 D0EF2C43464 for ; Fri, 18 Sep 2020 19:48:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4CC3922211 for ; Fri, 18 Sep 2020 19:48:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nqW26T8O" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CC3922211 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AE036900003; Fri, 18 Sep 2020 15:48:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A91358E0001; Fri, 18 Sep 2020 15:48:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A6DC900003; Fri, 18 Sep 2020 15:48:39 -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 842068E0001 for ; Fri, 18 Sep 2020 15:48:39 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 41259180AD806 for ; Fri, 18 Sep 2020 19:48:39 +0000 (UTC) X-FDA: 77277219558.14.sugar58_2807ed62712d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 1970318229818 for ; Fri, 18 Sep 2020 19:48:39 +0000 (UTC) X-HE-Tag: sugar58_2807ed62712d X-Filterd-Recvd-Size: 4306 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Sep 2020 19:48:38 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id k25so6014380ljg.9 for ; Fri, 18 Sep 2020 12:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rGRBhoEIYM+I62uhtkzSGBAX+5us/YHtB+9Vgg1zTtY=; b=nqW26T8OmNe5+E2dLewM6NhPfcOBIFPhxmshxeaPCd3/CNcEzUwyciqvYOimc4nCWZ d6ahQ6xO9c03qe4fnvRVpFbGe3BbO1F1IHkhs2HizzY1bNziXGzJsPgkJuMLsmHp7bER +BBGfCAMJKqezojoPek2mjW4+mNscce+qsljzbS+zhN3rZxZuCpll8pE+/SZoUXjyFv8 1e41FNCJ5E+DyfiQ78Zf/NKrs9oSsjn0tqD+aAW+GFem3xNt73k94D7Rwdv6hTFW/t8V iEfTfleACAerSnWZOqjud72CkZnzAffr45ahnqzqWLSxtoDTEiB4TKyjLspPkgh4uTQ5 LT3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rGRBhoEIYM+I62uhtkzSGBAX+5us/YHtB+9Vgg1zTtY=; b=NL7Gosbi+Uckx1YquXuLsbLka+IWNk1zRMe08MXrrlrUoonEWRoURS0pnArM8O0snf iCkTufnrb8XSdcIw072aE/hIPxD/HPIPMxnx7BXXzsRpG3fTQm1eFmr7PiwOh+i7CDf0 50nw/zZ8QfDgJ+ygzR7Xo4o0D1oN8adft4QN+ai+fHxQ1I905UpJVtFx+2Z+/5VrUK1Y DHuxG5c7NsIFnSpzyRVopz5kbrykTwaLEaHpMQXkN39+HTnsW7s4jr6GFRRXR05mYxwJ Oo9iFL8fnU8Rr7kmwlFge7GLPMV+4od0hw9vv/vA6ImXy1CffjWhoC5MFECPpmu6F4YA pRZA== X-Gm-Message-State: AOAM5306Q5cm6vFrp40IPGUy4EpvJNzMlFhwf4vgqnwdjCE35P7uAWtL sv0WVDpyrXTPKqLVU9LNzS0= X-Google-Smtp-Source: ABdhPJyn9sqZurK+0ib9MIFAesyL3MylhyXr116ZbhuJNj3ywoGWgVAqgvt4drq460J31feLyaJP+w== X-Received: by 2002:a2e:b6cd:: with SMTP id m13mr13092130ljo.383.1600458517144; Fri, 18 Sep 2020 12:48:37 -0700 (PDT) Received: from pc638.lan (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id a17sm766769lfd.148.2020.09.18.12.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 12:48:36 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: LKML , RCU , linux-mm@kvack.org, Andrew Morton , "Paul E . McKenney" Cc: Peter Zijlstra , Michal Hocko , Vlastimil Babka , Thomas Gleixner , "Theodore Y . Ts'o" , Joel Fernandes , Sebastian Andrzej Siewior , Uladzislau Rezki , Oleksiy Avramchenko Subject: [PATCH 0/4] kvfree_rcu() and _LOCK_NESTING/_PREEMPT_RT Date: Fri, 18 Sep 2020 21:48:13 +0200 Message-Id: <20200918194817.48921-1-urezki@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: Hello, folk! This is another iteration of fixing kvfree_rcu() issues related to CONFIG_PROVE_RAW_LOCK_NESTING and CONFIG_PREEMPT_RT configs. The first discussion is here https://lkml.org/lkml/2020/8/9/195. - As an outcome of it, there was a proposal from Peter, instead of using a speciall "lock-less" flag it is better to move lock-less access to the pcplist to the separate function. - To add a special worker thread that does prefetching of pages if a per-cpu page cache is depleted(what is absolutely normal).=20 As usual, thank you for paying attention to it and your help! Uladzislau Rezki (Sony) (4): rcu/tree: Add a work to allocate pages from regular context mm: Add __rcu_alloc_page_lockless() func. rcu/tree: use __rcu_alloc_page_lockless() func. rcu/tree: Use schedule_delayed_work() instead of WQ_HIGHPRI queue include/linux/gfp.h | 1 + kernel/rcu/tree.c | 90 ++++++++++++++++++++++++--------------------- mm/page_alloc.c | 82 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 41 deletions(-) --=20 2.20.1