Message ID | 20230622082454.4090236-2-qi.zheng@linux.dev (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 331BBC001DE for <dm-devel@archiver.kernel.org>; Fri, 23 Jun 2023 05:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687498015; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=31zKv+LPNg/YwFPQGQV50nDHtDH1Rp2oNBgv8/kr6a0=; b=bEXpe7qSrqxNq3yIkiBRWkBfmfRm4RnxpytzcL2aPrPmHLfgjR5kT22MEYuJeZne1aFqH0 X5YYAFC2vkVCCokxGzJKFXtLcIcCmu7UUmEfO1iHZp0FSQkpND3ZgtRWWC0EwfWJ6x6Wnz HXO5TzxGQ67wi927zezPft/ZFySM9eI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-326-HR8zoaudNX2nqzPzCqdWqA-1; Fri, 23 Jun 2023 01:26:52 -0400 X-MC-Unique: HR8zoaudNX2nqzPzCqdWqA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 37EB03C1CB13; Fri, 23 Jun 2023 05:26:21 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24ADAC478C7; Fri, 23 Jun 2023 05:26:20 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5A086194F27E; Fri, 23 Jun 2023 05:25:48 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 3C8C61946587 for <dm-devel@listman.corp.redhat.com>; Thu, 22 Jun 2023 08:35:22 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 1D4E2112132E; Thu, 22 Jun 2023 08:35:22 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 16826112132C for <dm-devel@redhat.com>; Thu, 22 Jun 2023 08:35:22 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F14BB8C586A for <dm-devel@redhat.com>; Thu, 22 Jun 2023 08:35:21 +0000 (UTC) Received: from out-10.mta0.migadu.com (out-10.mta0.migadu.com [91.218.175.10]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-642-eEA3EMEJN_eOy0OeP3FAGQ-1; Thu, 22 Jun 2023 04:35:19 -0400 X-MC-Unique: eEA3EMEJN_eOy0OeP3FAGQ-1 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Qi Zheng <qi.zheng@linux.dev> To: akpm@linux-foundation.org, david@fromorbit.com, tkhai@ya.ru, vbabka@suse.cz, roman.gushchin@linux.dev, djwong@kernel.org, brauner@kernel.org, paulmck@kernel.org, tytso@mit.edu Date: Thu, 22 Jun 2023 08:24:26 +0000 Message-Id: <20230622082454.4090236-2-qi.zheng@linux.dev> In-Reply-To: <20230622082454.4090236-1-qi.zheng@linux.dev> References: <20230622082454.4090236-1-qi.zheng@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mailman-Approved-At: Fri, 23 Jun 2023 05:25:40 +0000 Subject: [dm-devel] [PATCH 01/29] mm: shrinker: add shrinker::private_data field X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://listman.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <http://listman.redhat.com/archives/dm-devel/> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://listman.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> Cc: mst@redhat.com, jasowang@redhat.com, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, song@kernel.org, dm-devel@redhat.com, ray.huang@amd.com, namit@vmware.com, marijn.suijten@somainline.org, airlied@gmail.com, agk@redhat.com, robh@kernel.org, senozhatsky@chromium.org, david@redhat.com, clm@fb.com, steven.price@arm.com, alyssa.rosenzweig@collabora.com, Qi Zheng <zhengqi.arch@bytedance.com>, josef@toxicpanda.com, linux-ext4@vger.kernel.org, kent.overstreet@gmail.com, xuanzhuo@linux.alibaba.com, linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org, snitzer@kernel.org, quic_abhinavk@quicinc.com, colyli@suse.de, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcache@vger.kernel.org, viro@zeniv.linux.org.uk, dsterba@suse.com, sean@poorly.run, linux-nfs@vger.kernel.org, tomeu.vizoso@collabora.com, kolga@netapp.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, minchan@kernel.org, robdclark@gmail.com, chuck.lever@oracle.com, daniel@ffwll.ch, jack@suse.com, dmitry.baryshkov@linaro.org, adilger.kernel@dilger.ca, freedreno@lists.freedesktop.org, christian.koenig@amd.com, linux-btrfs@vger.kernel.org Errors-To: dm-devel-bounces@redhat.com Sender: "dm-devel" <dm-devel-bounces@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: linux.dev Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
use refcount+RCU method to implement lockless slab shrink
|
expand
|
diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index 224293b2dd06..43e6fcabbf51 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -70,6 +70,8 @@ struct shrinker { int seeks; /* seeks to recreate an obj */ unsigned flags; + void *private_data; + /* These are for internal use */ struct list_head list; #ifdef CONFIG_MEMCG