Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2302089rwb; Thu, 17 Nov 2022 09:01:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf5UarUIqPdvVnCfXduSKzbs6s8UwzrLKgc5Vklg6260C12YGx5wK64Ia3HuF2mI1NnTnUOw X-Received: by 2002:a63:5007:0:b0:45f:beda:4116 with SMTP id e7-20020a635007000000b0045fbeda4116mr2770977pgb.618.1668704487986; Thu, 17 Nov 2022 09:01:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668704487; cv=pass; d=google.com; s=arc-20160816; b=LCdPO2JP+EGTA1FmbVMrUHp42UK8wPXayx1I7uLCmDbw60hoI/keVA1W3QOL88nbog ibxTHq/jHxKaF8cx5mxotyrEGecSt9ZIj5fIiLIA3dypa5CsUhzDBJkhNG75zg9WxUWt BS+C6O9VImOomlOe/A9Hm0pbUgdF+lVIDPW3g5R2sANt+XM4aRz4nFKl3wUJStAndy3a LwuYTD8XyplMGiAOZ82jO50aMr+s6YL1epp9mxw4AueWs2zB4FR94IoQpXhP53OqX8rN w+Z4iBw9SumnYdz0Cl07bSa/6aTMc80P5zwxiTzk4KQ7F9mX9c5VD9Tk2m8/NyQ/toXd CNQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=IsHn29D+98GJ8QKhp7YLH1W6exbLktC7E3eOgZxMjT8=; b=KQN+nH3HaHTIzSiohV3asH4TB9PYb4/FyC7C0ou5DBEISmvIqWAkLAW8IUAvsIRcqU xbskfaC0tRZ7ZQnZ60Li6cA7aLaqizbSiFz/nD60h6bgtUPl+UlcUIBBJaEeJSY9fg+L MnyV6ZCBaBl5jETZwfwu5Q1CcZhpN7M/3I7GsT7sAOuxYdmapddtP0u8Y4dZp28JGmuZ OAkEKgg3uCIm/tk1/ZyQwzkdRdY+kisshEuO6Eav8S2/XxwIOZeeYdtNnKo0YS6ebsX8 AHDdLwywvPj2A7Ce0hQ8mEH2G9vwhw2qNBSCrLWkX901gyF3YdutLQjVwv+jUw70RCf1 v0zw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=K33c3E+P; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="HCD/3SXA"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm9-20020a056a00338900b0056be3109462si1232823pfb.163.2022.11.17.09.00.43; Thu, 17 Nov 2022 09:01:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@oracle.com header.s=corp-2022-7-12 header.b=K33c3E+P; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="HCD/3SXA"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234551AbiKQQqe (ORCPT + 99 others); Thu, 17 Nov 2022 11:46:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbiKQQqc (ORCPT ); Thu, 17 Nov 2022 11:46:32 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E516B2AE26 for ; Thu, 17 Nov 2022 08:46:31 -0800 (PST) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AHG0DV1028265; Thu, 17 Nov 2022 16:46:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=IsHn29D+98GJ8QKhp7YLH1W6exbLktC7E3eOgZxMjT8=; b=K33c3E+PSAQGXAE6o1y9fjMDrKc+mpPW1O9LgMcW2kHGM8zeigmOGjs/EpyWbPh2Y4eb V+6pkZEqKwiKwDEVNyucX5dCpLQD+wNttxEUer1RjpSTFM8f2bDKQbkg6bdrj4iLZ3OA f/xJ1fhZ7jmAppjOM3S8bK/kmMcH19/oVV4swt3LqWkPuPBaQpp0Y9qSyqEcjj2nW7ZU ryeIkdnNdLZx+2s27YU++j6nc2noqtNjCvBuhvM46QaV8I8nZDfzfr4+dtwn72ahg/AY hEG9k+VTZ+l5WTOsq78UCePeQxwGwJXFBFIyXE0Y7KrSOKyUh/18QnqlDOh7kjlhve8Q tg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3kv8yksm2h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Nov 2022 16:46:28 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2AHFtCGk008687; Thu, 17 Nov 2022 16:46:26 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2176.outbound.protection.outlook.com [104.47.73.176]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3kt1xfncda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Nov 2022 16:46:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YNcjjqBsA82LxZVbE1AtjC9vUBycLHA1+1z16/LYylIBUZ499dUcYA8mJVeHvtp1HM2GkkgwEIo+kH7/8rLqtWt+iqYPADtKPYdbZ+tImYMDlt2ABtrGM18q7eWq+2nS7SUbvEQkes+oxWS/TBYig0yN38e7UGE17HUw3rD87TlADf/tq7+SkyRIF2NWfGyP+HzHphRV5AB4+IGTbYsR/rRXz4DWtV1PsmQPA0smI3HYSjn203/vtKvlcHXphWyoDwhzZk0X9Ajf4DOz6Z7BGeFA+ob5/U0mCa9+DiBjscMU6YphFtzas8mhCCo/KFTVctHuhJvIimPEcJ/sLsVZRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IsHn29D+98GJ8QKhp7YLH1W6exbLktC7E3eOgZxMjT8=; b=ZEjpH7IQ2LaLljwRhHw5bpS2EOZbUTek1/vtDgakK1tCdIscEqtiPK07aQ8cMjhtEV1X1sPcznSb7vwbadGKazEoV+nrqvDin3GJdUN6vJP9K1kuzu37vVd2bVzEaVcdutqTS/6klAQ3t+xBoA240cYklo5d26oJKARbJZq6OxfuN1mSM24mad9GlgBKi/cERQnQxeDc9IDIG4i1uF1UGGy9eaAllFmT3/ZeDU7SANgyiCWh6BWpgfxfsCN48+yO0DtvY1j4gA7U6TqDxEI+o4gpF7pY1KwaT/vwKY8zqb3SS9l3IQGRwm/GmwJPa95RKNt2UfzDh/dVsn1w2rzokQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IsHn29D+98GJ8QKhp7YLH1W6exbLktC7E3eOgZxMjT8=; b=HCD/3SXA5cNtGGdFSbvSBXNd0Y/Mb5fmleg6o6r8csD0lu9qdErXbX4cXDyEyrh+XXWUXq9ljU5Jrz38QCV3peQ70AotOzH1g54tp+034fu1vHlAMJSrzd3yX5YNl7eq394ZTQcbOyVPKcRXWnY+feCCbKkxNCuy8u4v8Wp7TvM= Received: from BY5PR10MB4257.namprd10.prod.outlook.com (2603:10b6:a03:211::21) by CY5PR10MB5913.namprd10.prod.outlook.com (2603:10b6:930:2f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.20; Thu, 17 Nov 2022 16:46:23 +0000 Received: from BY5PR10MB4257.namprd10.prod.outlook.com ([fe80::2d62:ce4b:356d:e242]) by BY5PR10MB4257.namprd10.prod.outlook.com ([fe80::2d62:ce4b:356d:e242%8]) with mapi id 15.20.5813.020; Thu, 17 Nov 2022 16:46:23 +0000 Message-ID: Date: Thu, 17 Nov 2022 08:46:21 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v5 1/4] NFSD: refactoring courtesy_client_reaper to a generic low memory shrinker Content-Language: en-US To: Chuck Lever III Cc: "jlayton@kernel.org" , Linux NFS Mailing List References: <1668656688-22507-1-git-send-email-dai.ngo@oracle.com> <1668656688-22507-2-git-send-email-dai.ngo@oracle.com> From: dai.ngo@oracle.com In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SA1PR02CA0016.namprd02.prod.outlook.com (2603:10b6:806:2cf::22) To BY5PR10MB4257.namprd10.prod.outlook.com (2603:10b6:a03:211::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4257:EE_|CY5PR10MB5913:EE_ X-MS-Office365-Filtering-Correlation-Id: a218ebb9-013d-4fbe-8d39-08dac8bb431d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oouUX2bmq3XWmQTzEbyvJsf62Em1RqW6lgrCH0hQUHqekjPp+SiPAQHQy8p3jFdUA17L1PCducctGC1aGA0Ln+xOq4l/JG4IIhzZCK/k0o45LilWrFKNQomzEjHI4W6h3Rqsyrw0pX+wlvOAdOIzVucpr9vR0hpgSZQAkuFBcbNbbO5Hf5VNuuKhCIz3um7qor38ObEs/uSyM122dg5k5SNdDa0lOKXaqbb82lw5jK1KZ3moAMhGmPXUMYxPPzJdpFp5w8cwvloEK/MF8lAtFxd6vqTQYpg4yPiORcniItBmgilu2qo8s0K7aDk0u/cdDc6nZ+UOhBKBpvIsgVodcrwaKjdoDpvDqfaBZFze6yheDTtsow3bcx7j9O7qCIDrFdhV8Jccv0Yic3Lrkus1giZpAY0tP3WtJcX4wVNy7J1t9OJrT8bMz4sqILtK7Ze+jxiaB2TbiXkdMRck5rhc2XUdPn9iQPLtswnvgoVaWOmKS2AAF1iEXLEEbWHDlL5HgbXzOoc2dkzU1Ng8tMGX43D4Pa6R0nTDPDT1yzRkxdo6aDbE3lEUPay9lUwQfRMeLGq0JyjpO8CKzfzLMN+6b9RJfdsxm9TSHf9AQbW8AyqJVlJeWi5K4/F7orMOL8sAeL9BRkhbZ041XRKvnYwqwKSwNIZ7g9YOECp3lADumdNmy24OCRpiaKzZ7Gj9r7K9YbquyXxmaSsJn6ea1n9eLA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4257.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(39860400002)(396003)(366004)(136003)(376002)(451199015)(86362001)(31686004)(54906003)(66946007)(31696002)(5660300002)(316002)(8936002)(41300700001)(6862004)(478600001)(83380400001)(38100700002)(2906002)(6486002)(6506007)(53546011)(9686003)(186003)(36756003)(2616005)(4326008)(66556008)(66476007)(8676002)(6512007)(37006003)(26005)(41533002)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dWkvSHdFMHZGNG1sREhKRmwxMmpGVURzYUJONkpHcEgxeWhlSlIrZkl3N2pF?= =?utf-8?B?M3dMUFppYVRFMWp1NENld256SVdwNkFxcDFYbHZicndIeW40TEZDZnB6ZnRm?= =?utf-8?B?czZuQ0lJSFZwNWh5cEhkcVQya0NqRFoxZHJKQXM5aWtyQis1QWxVOVFwRjdq?= =?utf-8?B?RHQ1R1liT24zOU44RTRwMWg3aXc5WGQvU0QraVh6YkFDRWl5cTZSS3RuTG9P?= =?utf-8?B?cDRMMjRTSHRaMEYvNVpTbzJJSGV0TUVVL0hpWWdaMkVzcjJGbXlCaXlrd1My?= =?utf-8?B?NmV2WUsvclZDWnZ6cHE1MFlVN0pTTXlHcGtmRFR3MUYzSDU3MnN6bm1RTVpv?= =?utf-8?B?KzBsUUZvN0RLNmRvdU1NZzJ2VHh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ExternalHop-MessageData-0: O7EXFYLyzsnIlsx2ajFMYn6R+e/ZlPV9VnGvR0wJoAz+lW24HZ2+Ot06ZD3JTL08T7qiYx2yfaIGTaKogoq0ApGsjf3amHmricRfeeKsFqLy3oH4ubLZZTt3T2sDw8RzN9RpsrS6cZvmdx0lBDxAq75r1KBsZoOWU8nHZ27NBgYeaG1qPOvaRyGatp6fEWV5uslCq5mFT9oZgY3Obj8s+zXmCbH9bRqTtD6gpjmyqXxC3TMVugA3fkUbfvoRfE96UolzjO/g4GO/M/QfPniE87SX3adDWjoKSx0RG7N1u+GXAmVbIHmZqc6cZUS8jc+9TdoUNX9zzFfsGWVTNSWknCYXvg/N3uoZVY5RfEz1vC/JUIWoA39MJ3Po7PKHF8jeURpSuQ7bWMs5nc8klaIfRxEArPkyToD6KS7+DM2rjKngLoeSjGFjtN/LHxKUUzAnyMJEhmrdZfReMBWMhewlQSq0iKij3vrSH5iEnCRm1snpLy/oMS85ijTzO2dpZ/0wEFS5rgSfXnUTUGujFhDwqlkwmjMNhMaY2ck39zqakXr5zbFXTW2lrwqtELAyR4TMHsuKjY8Qmpm221uMmOfZXFPdyvnUtBWkrsv1X2mWMNg8Jr0kWZRizE3XBEEAaSU78bzW2zwp/mxg+G385etQGhlCHuUB1eYtSXo7+ggtQxYUVbBhQREK41OOmn4Tl5i2f/1FVb/q8rp9mnuwAaSP6BUXS9CDkRdmHmd7RFBYeAgg/3RjjoMWixYd9ucMQOIgjo8DutnN/dFxKYdQLyQJal+LKcQRxEQX0/AM9ZlPSRk= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a218ebb9-013d-4fbe-8d39-08dac8bb431d X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4257.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2022 16:46:23.8658 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vq0V8t/ysVHQwhktPaH1fh4knHtvj3dZtC2FDxL4eajJU8K4H2s8U3l391YYGMIwZ2jJ852yu0XZeVSpf1dSSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB5913 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-17_06,2022-11-17_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 phishscore=0 suspectscore=0 spamscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211170124 X-Proofpoint-GUID: JmDx-P61aBxYAKIkztqi6UEeHJrcNfWO X-Proofpoint-ORIG-GUID: JmDx-P61aBxYAKIkztqi6UEeHJrcNfWO X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham 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-nfs@vger.kernel.org On 11/17/22 6:45 AM, Chuck Lever III wrote: > >> On Nov 16, 2022, at 10:44 PM, Dai Ngo wrote: >> >> Refactoring courtesy_client_reaper to generic low memory >> shrinker so it can be used for other purposes. >> >> Signed-off-by: Dai Ngo >> --- >> fs/nfsd/nfs4state.c | 25 ++++++++++++++++--------- >> 1 file changed, 16 insertions(+), 9 deletions(-) >> >> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c >> index 836bd825ca4a..142481bc96de 100644 >> --- a/fs/nfsd/nfs4state.c >> +++ b/fs/nfsd/nfs4state.c >> @@ -4347,7 +4347,7 @@ nfsd4_init_slabs(void) >> } >> >> static unsigned long >> -nfsd_courtesy_client_count(struct shrinker *shrink, struct shrink_control *sc) >> +nfsd_lowmem_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) >> { >> int cnt; >> struct nfsd_net *nn = container_of(shrink, >> @@ -4360,7 +4360,7 @@ nfsd_courtesy_client_count(struct shrinker *shrink, struct shrink_control *sc) >> } >> >> static unsigned long >> -nfsd_courtesy_client_scan(struct shrinker *shrink, struct shrink_control *sc) >> +nfsd_lowmem_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) >> { >> return SHRINK_STOP; >> } >> @@ -4387,8 +4387,8 @@ nfsd4_init_leases_net(struct nfsd_net *nn) >> nn->nfs4_max_clients = max_t(int, max_clients, NFS4_CLIENTS_PER_GB); >> >> atomic_set(&nn->nfsd_courtesy_clients, 0); >> - nn->nfsd_client_shrinker.scan_objects = nfsd_courtesy_client_scan; >> - nn->nfsd_client_shrinker.count_objects = nfsd_courtesy_client_count; >> + nn->nfsd_client_shrinker.scan_objects = nfsd_lowmem_shrinker_scan; >> + nn->nfsd_client_shrinker.count_objects = nfsd_lowmem_shrinker_count; >> nn->nfsd_client_shrinker.seeks = DEFAULT_SEEKS; >> return register_shrinker(&nn->nfsd_client_shrinker, "nfsd-client"); >> } >> @@ -6125,17 +6125,24 @@ laundromat_main(struct work_struct *laundry) >> } >> >> static void >> -courtesy_client_reaper(struct work_struct *reaper) >> +courtesy_client_reaper(struct nfsd_net *nn) >> { >> struct list_head reaplist; >> - struct delayed_work *dwork = to_delayed_work(reaper); >> - struct nfsd_net *nn = container_of(dwork, struct nfsd_net, >> - nfsd_shrinker_work); >> >> nfs4_get_courtesy_client_reaplist(nn, &reaplist); >> nfs4_process_client_reaplist(&reaplist); >> } >> >> +static void >> +nfsd4_lowmem_shrinker(struct work_struct *work) > All shrinkers run due to low memory, so I think this name > is a bit redundant. How about nfsd4_state_shrinker? ok, it makes sense. Thanks, -Dai > > >> +{ >> + struct delayed_work *dwork = to_delayed_work(work); >> + struct nfsd_net *nn = container_of(dwork, struct nfsd_net, >> + nfsd_shrinker_work); >> + >> + courtesy_client_reaper(nn); >> +} >> + >> static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp) >> { >> if (!fh_match(&fhp->fh_handle, &stp->sc_file->fi_fhandle)) >> @@ -7958,7 +7965,7 @@ static int nfs4_state_create_net(struct net *net) >> INIT_LIST_HEAD(&nn->blocked_locks_lru); >> >> INIT_DELAYED_WORK(&nn->laundromat_work, laundromat_main); >> - INIT_DELAYED_WORK(&nn->nfsd_shrinker_work, courtesy_client_reaper); >> + INIT_DELAYED_WORK(&nn->nfsd_shrinker_work, nfsd4_lowmem_shrinker); >> get_net(net); >> >> return 0; >> -- >> 2.9.5 >> > -- > Chuck Lever > > >