Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4039607ybd; Tue, 25 Jun 2019 12:57:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxY8vS/EulR4y1FmZM4QCYeACMhVdsLOJBDu2KjWUVp/1d3VedUdFsDjzkUJO14lRu/jlff X-Received: by 2002:a63:9548:: with SMTP id t8mr40410473pgn.256.1561492670380; Tue, 25 Jun 2019 12:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492670; cv=none; d=google.com; s=arc-20160816; b=yeZY3o/LfdhIzasABnaJui2WIXWkgacKbkwGvETGQ92NJlCOHHPRHAYr8rPg7nuC+v QkaO+mBsYZbcm8hrPn6ieNmQ0wa//taCg3hftFbFs0mjEoNFzwbo7mAKFRvmm8SgznX7 Lm3lBtTNQ5zcIr1bZD+vMq5e/xjOx6dBu0WOmptfC2MkfqOuLxYg8eybTgAks5d1hdkJ 2JigYxMjI/bPCh0BAzxwefemBv8Znqwr2H9h17+Ip3izYp90rhPVpXTw8lzzGVS/8vkJ afLOXz/AI/6aa9grZuuGsPd5QOl0oiKbvGn3Y8hn8BNadn6gdfjmMvsHuZhgdyjblacc Aw3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=c1bhlSYUHtmacSSZu3GVj7bv0K+nCRKddkIcoLBahUI=; b=cx4dZ3wWoXRFbn9hfzE/F2TfVJ5Fe856z+KFjE0pnH2/wU9bGbDbNwuXT545Y93hpA VC+6ARexXMh+eYx5GfUSlzeC/ylnKvpWehlHN+BHHyyr38GBe9opH0nSGMRM2xJXGUFi OJ9+6tVFqvcoGAJdWmSUuwH3RqX4P7a6TfVFXDPDyzHZ1mObwGZOP/EOmGCraXbFYuL+ j8+abFgU0u6MhmyEZ+ibZO5M7C4X7ypbQkr01/cbWMc2EF6JPo9Ro0jOp34ouOJaoLD4 51ESz4QfQuNm2j3gm8JGkTmQ/eDC6/MS7ZNpEFtp8fNmnRPtK94zEKaJyryl37uNcFKp 45/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Siaob2p8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si2163611pgc.596.2019.06.25.12.57.34; Tue, 25 Jun 2019 12:57:50 -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=pass header.i=@google.com header.s=20161025 header.b=Siaob2p8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733015AbfFYSdf (ORCPT + 99 others); Tue, 25 Jun 2019 14:33:35 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:34049 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730179AbfFYSdf (ORCPT ); Tue, 25 Jun 2019 14:33:35 -0400 Received: by mail-yw1-f68.google.com with SMTP id q128so4913346ywc.1 for ; Tue, 25 Jun 2019 11:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c1bhlSYUHtmacSSZu3GVj7bv0K+nCRKddkIcoLBahUI=; b=Siaob2p81baD4yZPX63ez9l1o9fjOkHn0DslQPlKa+/CotLvGRfg2bD7y+vsM38XIA 8OzOkIkfy3f347jH+OkizC7buijoVIRXQvNC5nR0RkXsMfMX/CVnlfL5IcckK/a2K/CX iM5EpSF8zJkMeLQpEPga/bkb3OXdQTBzJEwQKD2Ic90tYUHT3SbiHyPJmOLLGqiR52QS pRAEIf2JVRHm35WgdunMsfdmU2vzOtc0TQDDdokbA9WEY2dxqfQxUJmcIgMj2YbIhd1K qvlg5/rlWRToD5oMKqFqrSJjF/81sX6w/LB6cP/k20ylrxDGTA0ESeJdvcbt4CiSvt4d P4mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c1bhlSYUHtmacSSZu3GVj7bv0K+nCRKddkIcoLBahUI=; b=mPJTto1MBaZFDcL85nWXUgkz0s7s4loSKIj0y8CkEo0Bx7wxOUdTW+Su2xRhCgiTGK xD1g8um/1+cJTY9Y6v8QNlxy05IlsUVKWtvs8/jWlp9IvXEN+Q+G2feL15JSoVgfm2WD mj/w+iSDcG1qCadz0UF2ShwpnFqx+uO0md8wwfy7jarMCPXutzkr0cuw1qjHjM9746YI 1rp17YdA3aoYCIyRaLNgPFOwx7htJRWO4vgi4eU5HkTdDw2YuuP/9yyIsU90McIiDwS1 wRPXBpVYerjrg/q7OY/XQwktKQxtcxrBDSdyroGX9NMc5bPR4T6iInnANfycQuG+4Bsc EyNQ== X-Gm-Message-State: APjAAAVSREMU7tx7TDAd+AZGwF+Vipcwt981C39Qbje8+J12vmqcwnep l11mMCT4kIIkBJOAuXLqWjwE+KXkICQy9AwNiWRqaA== X-Received: by 2002:a81:4c44:: with SMTP id z65mr112330ywa.4.1561487614082; Tue, 25 Jun 2019 11:33:34 -0700 (PDT) MIME-Version: 1.0 References: <20190611231813.3148843-1-guro@fb.com> <20190611231813.3148843-8-guro@fb.com> In-Reply-To: <20190611231813.3148843-8-guro@fb.com> From: Shakeel Butt Date: Tue, 25 Jun 2019 11:33:23 -0700 Message-ID: Subject: Re: [PATCH v7 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock To: Roman Gushchin Cc: Andrew Morton , Vladimir Davydov , Linux MM , LKML , Kernel Team , Johannes Weiner , Waiman Long Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 4:18 PM Roman Gushchin wrote: > > Currently the memcg_params.dying flag and the corresponding > workqueue used for the asynchronous deactivation of kmem_caches > is synchronized using the slab_mutex. > > It makes impossible to check this flag from the irq context, > which will be required in order to implement asynchronous release > of kmem_caches. > > So let's switch over to the irq-save flavor of the spinlock-based > synchronization. > > Signed-off-by: Roman Gushchin Reviewed-by: Shakeel Butt