Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp738316pxx; Thu, 29 Oct 2020 13:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9YLEMpq8qg2pz5CdH28/rf6KBEA2gjvRlqIyk3mWuIOIDjORJhB0S5Pk0c4yHlvmgXLKh X-Received: by 2002:a17:906:139a:: with SMTP id f26mr5728225ejc.472.1604002533767; Thu, 29 Oct 2020 13:15:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604002533; cv=none; d=google.com; s=arc-20160816; b=GgZ9dkcsGFRJ3FWGGKIVUUGHk5P2IP1dFOVQP+yRealoHvvH799yaGLnwXpi/JV884 FUUgKdpVyfpT6nJrlCSK95h/jz0j5wKVuiaW6u70V7Qzws86tcEUGOOR73ee/6Sthfmo qj3XKKBifdaSdDR2KXM5skx7y7+Yv+wsaQ3W6mo1dtsdeYQbZn+iX5Ffl+6WpWUXL4Hy FvgNiOABhGwjaad2AgfyzWT+CLu7HekmmfUoEYY4VCLBbiB02Et2Oc9OY2Vz4MgT9E2E eK0cocE4sdL+aSJSLCvR8vr+pX1e3OfNkm7o9Wj/aEn64aTSGMeF3qtWi+o/emDfkxYm 56pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=zjF17W0vOMBHvXRSXvNM6sne+NYRImdcD8ZAV+fudt8=; b=udfghGjeobTHTpOvlXktBhYF1lXA4YKm8nJQuKDsA83BJd+Othw/sffyJ5xh9tRgwy 6OKBUcpfy216YGirgZx8yg2wgNN+GfGEPeVhRoThrAwHP5hru7Qbi/2jjNPrkQqth5dJ xyGlhCGhWL5eWgA1mNgiP5SOHdvxr00mcS71MrRkBGSeeeRd9GhVvQLszitRhSf9IrKn 6bIRa3tsugg2lb9bOcT5QhRxhAvbA7b40xsSVM65SCBD7qcIjEVtPc6AlsJTzP6k+DIl ER4XdLjHKioCZRj5Nj9IjLTIJokUjEcLlO13IUpTO2TnUQdho0TQS2SI4DbLCJyJAeFT IpHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WJenf88G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si2819329edv.293.2020.10.29.13.15.10; Thu, 29 Oct 2020 13:15:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WJenf88G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726254AbgJ2UNt (ORCPT + 99 others); Thu, 29 Oct 2020 16:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725764AbgJ2UNs (ORCPT ); Thu, 29 Oct 2020 16:13:48 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6176BC0613CF; Thu, 29 Oct 2020 13:13:48 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id l28so4916375lfp.10; Thu, 29 Oct 2020 13:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=zjF17W0vOMBHvXRSXvNM6sne+NYRImdcD8ZAV+fudt8=; b=WJenf88GwVujPLIoyqjWOsekMNi7gV/8Y7AkUIT5ybCsV046c2360Z8tOVnB6aqRtr LghMVYaImRBMWmgKSqg8EY5TOw8BgHbzJ1GNrFzXbQjN9Q6zkTZj/eT+3X77aHed/ACr 9b+bd/bhvLox7WGsrSt/lTEX+Pt5VtwwPq/5m23slfILU+7NzDmnHX3t51hAbiAcLVtI 4V1OMXUuXIzT/FjXzoLus96LhkAL1ubnYfiG5H2Z69a+h1kZAVbO2oP/pPryXcgRT70R EUM5kJ2FZYrNinfGDszqt7U45BY1uthyF9GnAJFUtNmrSWfy4JG8EamEJwSzzLGoJqBa SJkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=zjF17W0vOMBHvXRSXvNM6sne+NYRImdcD8ZAV+fudt8=; b=rpDo/DTuSK3WWuKCTDsaaM9mnETNe/mYAeecO0ijLkzcgSGizlTUeFo27CGLyaF7jY VglANu2hbhHEVtMboRD4/6qoIkxkGjM9gN0f1J9icNl2/RGCqBf4o2IkjSnFownmly5H pCw7MTJkL0jg+NRT8zc0MP9NGPR7YOw0mmSzUEl0qKXGhUPTEOKSA3Aa6eei8WzsoMqm /nQ1pDK8YBxDXQhsB4CuNkuveZwEJHHSzll+fdax7UOC7oUafofmkjyKvl6mt8xcPmwt YZWOZ4lfkTyMiipdWEmqfUXbC+fw4HvYEvYbMAZTWpJ6N09NATD4FcwVi2urGEBgXOzo gk7g== X-Gm-Message-State: AOAM532iP0esMbuXa9qIIepg+TqFeSDuMw8L6Oo1djGhBasK4z2Kr+l0 NnLNCksl7E/Tc9YDo5rC8OE= X-Received: by 2002:a05:6512:34d3:: with SMTP id w19mr2108833lfr.180.1604002426679; Thu, 29 Oct 2020 13:13:46 -0700 (PDT) Received: from pc636 (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id v123sm383473lfa.129.2020.10.29.13.13.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 13:13:44 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Thu, 29 Oct 2020 21:13:42 +0100 To: "Paul E. McKenney" Cc: "Uladzislau Rezki (Sony)" , LKML , RCU , Andrew Morton , Peter Zijlstra , Michal Hocko , Thomas Gleixner , "Theodore Y . Ts'o" , Joel Fernandes , Sebastian Andrzej Siewior , Oleksiy Avramchenko Subject: Re: [PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache Message-ID: <20201029201342.GA24122@pc636> References: <20201029165019.14218-1-urezki@gmail.com> <20201029165019.14218-16-urezki@gmail.com> <20201029194724.GN3249@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201029194724.GN3249@paulmck-ThinkPad-P72> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 12:47:24PM -0700, Paul E. McKenney wrote: > On Thu, Oct 29, 2020 at 05:50:19PM +0100, Uladzislau Rezki (Sony) wrote: > > A CONFIG_PREEMPT_COUNT is unconditionally enabled, thus a page > > can be obtained directly from a kvfree_rcu() path. To distinguish > > that and take a decision the preemptable() macro is used when it > > is save to enter allocator. > > > > It means that refilling a cache is not important from timing point > > of view. Switch to a delayed work, so the actual work is queued from > > the timer interrupt with 1 jiffy delay. An immediate placing a task > > on a current CPU can lead to rq->lock double lock. That is why a > > delayed method is in place. > > > > Signed-off-by: Uladzislau Rezki (Sony) > > Thank you, Uladzislau! > > I applied this on top of v5.10-rc1 and got the following from the > single-CPU builds: > > SYNC include/config/auto.conf.cmd > DESCEND objtool > CC kernel/bounds.s > CALL scripts/atomic/check-atomics.sh > UPD include/generated/bounds.h > CC arch/x86/kernel/asm-offsets.s > In file included from ./include/asm-generic/atomic-instrumented.h:20:0, > from ./include/linux/atomic.h:82, > from ./include/linux/crypto.h:15, > from arch/x86/kernel/asm-offsets.c:9: > ./include/linux/pagemap.h: In function ‘__page_cache_add_speculative’: > ./include/linux/build_bug.h:30:34: error: called object is not a function or function pointer > #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e)))) > ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./include/linux/mmdebug.h:45:25: note: in expansion of macro ‘BUILD_BUG_ON_INVALID’ > #define VM_BUG_ON(cond) BUILD_BUG_ON_INVALID(cond) > ^~~~~~~~~~~~~~~~~~~~ > ./include/linux/pagemap.h:207:2: note: in expansion of macro ‘VM_BUG_ON’ > VM_BUG_ON(preemptible()) > ^~~~~~~~~ > scripts/Makefile.build:117: recipe for target 'arch/x86/kernel/asm-offsets.s' failed > make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1 > Makefile:1199: recipe for target 'prepare0' failed > make: *** [prepare0] Error 2 > > I vaguely recall something like this showing up in the previous series > and that we did something or another to address it. Could you please > check against the old series at -rcu branch dev.2020.10.22a? (I verified > that the old series does run correctly in the single-CPU scenarios.) > I see the same build error. Will double check if we have similar in the previous series also. It looks like the error is caused by the Thomas series. Will check! -- Vlad Rezki