Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp682740rwb; Wed, 26 Jul 2023 00:41:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFtKJL4lF7PQggC3WlKjLHOr6bQ3wxsmxssx/0ezMS0tkDMhtLagKd56qsA+M3fwiK5/5x6 X-Received: by 2002:a05:6a21:7803:b0:12f:a373:ba8d with SMTP id be3-20020a056a21780300b0012fa373ba8dmr1381404pzc.24.1690357264052; Wed, 26 Jul 2023 00:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690357264; cv=none; d=google.com; s=arc-20160816; b=01Om3XSxxzeMSPUIsjbMTY6NTUAPfN9fLbzSCFaTma+pC4ug0zIqvh23PV58YR/ccf ljWJaBElhrgyzDQ7aa7pWqIPE0pldscK7XRLG/uuglJ1COv5dXsG4RN6VrlBJgKkmxrw VQs5c0AFquwxXu8iFM0mm5mrj6TXJ4aN9lM6e+r9S/Y0svOkH1A9p7r8EwaEVnJtTVLw gyCfpKi0bI1H1am6RKdS8xJBTThip4MuVWyTW9ZhxZGnfsI4+PGxFPYE4Vqb4DdN2mzF FN2lfz7hMRfHfsr+jLif9sQXF5Sroie9znzq89hx84VgrdVZcdoAoYQxhuyC+a6RX20A rpDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=D9nV4Gkwsjrr4/95UoI7nAR6TO/qI/lblnfLq6UsstM=; fh=G5Ivpgr6jpacEdHMoxfoNLtYLWx4G+pEaINoSx6siHM=; b=xu5J5kAYxPt/Hogkyz8rtd8GYrsoWy9zHfvqzEdLZFVma6j4EoH5PLucn2aiqe5eyf 3Yhtetyjm4p2kz6tUkoQkLdicCG13fVPZXbTsRGjKwIQet9NVOjvtaDEhGdIwt722Uwn zdQKMTjW2geHW1+re4EyrC37awqA8l42HPDJphmcFXYacAyLqtL8HNtH+TQjJHNoZBZI LIubzwnkVcTwUVb5AbPuCFU4GM/0wJWcaNOwAURrdBgKzkvaS88OTfCeTFKyruHCk4L2 19Y3bxPF3o9hyPppIZuop0eTJmyr8VgGTB+wl04567LMHLzpnoLzlNt58UoSklSVc6HY pFpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=GN2j9vh2; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z184-20020a6365c1000000b0054405623a4asi12734390pgb.615.2023.07.26.00.40.50; Wed, 26 Jul 2023 00:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=GN2j9vh2; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjGZHUG (ORCPT + 99 others); Wed, 26 Jul 2023 03:20:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232119AbjGZHTj (ORCPT ); Wed, 26 Jul 2023 03:19:39 -0400 Received: from out-57.mta0.migadu.com (out-57.mta0.migadu.com [91.218.175.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E78F4217 for ; Wed, 26 Jul 2023 00:16:37 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690355795; h=from:from: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; bh=D9nV4Gkwsjrr4/95UoI7nAR6TO/qI/lblnfLq6UsstM=; b=GN2j9vh2yOL79kRSdyksTtnS6NLSWm3pqace0LlbvJbsUtBuOWKaOFqFI1x2Gwlrwmnstj qq8J0QgybstmeW5uMSmzXD5PGEe4vfK3am0PPA/1MT9BMOHcQr+Msowj7sFjpB4siS73jQ C2Exy1Nss1FPxGRLcy6vcv7TsLEuQ08= MIME-Version: 1.0 Subject: Re: [PATCH v2 22/47] drm/i915: dynamically allocate the i915_gem_mm shrinker X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230724094354.90817-23-zhengqi.arch@bytedance.com> Date: Wed, 26 Jul 2023 15:15:47 +0800 Cc: Andrew Morton , david@fromorbit.com, tkhai@ya.ru, Vlastimil Babka , Roman Gushchin , djwong@kernel.org, Christian Brauner , "Paul E. McKenney" , tytso@mit.edu, steven.price@arm.com, cel@kernel.org, Sergey Senozhatsky , yujie.liu@intel.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, linux-erofs@lists.ozlabs.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, linux-mtd@lists.infradead.org, rcu@vger.kernel.org, netdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <82139544-DF2B-42FB-A323-5E4F0598EF4E@linux.dev> References: <20230724094354.90817-1-zhengqi.arch@bytedance.com> <20230724094354.90817-23-zhengqi.arch@bytedance.com> To: Qi Zheng X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org > On Jul 24, 2023, at 17:43, Qi Zheng wrote: > > In preparation for implementing lockless slab shrink, use new APIs to > dynamically allocate the i915_gem_mm shrinker, so that it can be freed > asynchronously using kfree_rcu(). Then it doesn't need to wait for RCU > read-side critical section when releasing the struct drm_i915_private. > > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song