Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2367896imu; Fri, 23 Nov 2018 08:12:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+N58ugfUzRW+fI0y6taXzEv2Ls2HnfGAzR2/zj1Ht8ZAVb0QnFR79ViIVE5upAasqeINb X-Received: by 2002:a63:b105:: with SMTP id r5mr14793272pgf.442.1542989536850; Fri, 23 Nov 2018 08:12:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542989536; cv=none; d=google.com; s=arc-20160816; b=jba0SGyQgjLampwCmzsGHx8uTxzM64EGblScGruKIaR0i+1keT3nW2QMDQdKe2tffW B9jPds1wuJW7CiYJW03cAEAf7lIQB+E/n8Ah71mf6/MTVBc9HxcvhxuzOi4XXnCFUe+T FIqCMfytx8cU9adNST32d96sfkYlhO4IlIilU4/maZR+JufBV34JT64pzk3ICG0ZGpma tcCDgvVc5TyOIuv2zT+/qaDWbDyP2DaTuiLHUPxHn0cAp9CVTlXh+C5UT2zOA4dwBf9s /XEB/iWeXbXuOvwAUSk3sNgcejE4cNSEIEo0wxpHZ+8LugCLWfb2PJA78vJ0GbbZWnOS 1nbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=GPmlq+GNLwjwnFmRunPdWEifi4u9lG/OIKEJs50iMFg=; b=efvATlSlJ7SFub+TQP/VHKuafw65DQev/BZLY1yvJ0SSUCuq74yDTkJjkQ5irKyfOQ 7w0kc8CjIgLfLE+Eg4tkIruBSmrl0z+758DK2vnBdZhm03y+NlYnBSfWT+u4CVhlK8uJ rSRWEyyQSNQz/mRPW8x9MbR+9c1JiBu7sh5lXENNNhQM2UXHHvSpbQhqclAyWZcBGBx7 0inCk1AFPoEOgADDsMSzWSfqSbMLsJSN0lZMzX+AG/DTRK0MdumMygWgLbNa68U8gjQL BlM5u8rH3iFD2B4FnquEIpVNz9yXYb7d96he5dwBNNLHHu2KO+EQ6Aqn7gNpp3hCSkAu 20rw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e93-v6si29669621plk.295.2018.11.23.08.11.38; Fri, 23 Nov 2018 08:12:16 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395169AbeKVXUj (ORCPT + 99 others); Thu, 22 Nov 2018 18:20:39 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15577 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2395160AbeKVXUi (ORCPT ); Thu, 22 Nov 2018 18:20:38 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B334C7632A48E; Thu, 22 Nov 2018 20:41:21 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 22 Nov 2018 20:41:15 +0800 Subject: Re: [PATCH 02/10] staging: erofs: fix race when the managed cache is enabled To: Greg Kroah-Hartman CC: , , Chao Yu , LKML , , Miao Xie References: <20181120143425.43637-1-gaoxiang25@huawei.com> <20181120143425.43637-3-gaoxiang25@huawei.com> <20181122101711.GA3189@kroah.com> <55aed87f-196e-9048-6aae-db09bc497664@huawei.com> <20181122110642.GE5287@kroah.com> <78f8bed5-5f7f-8ca6-5d7a-3a94a2062425@huawei.com> <20181122122627.GC10212@kroah.com> From: Gao Xiang Message-ID: Date: Thu, 22 Nov 2018 20:41:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20181122122627.GC10212@kroah.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.151.23.176] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 2018/11/22 20:26, Greg Kroah-Hartman wrote: > Ugh, every page? Ok, nevermind, I take back my objections. You all are > crazy and need to do crazy things like this :) ...Do you have some idea about this? ... I think it is fairly normal... :( We have a large number of managed workgroups, the current use case is the 4k compressed size, each compressed page has a workgroup, but erofs also has reclaim paths to free them for low memory cases. But since the structure (z_erofs_vle_workgroup, erofs_workgroup) is critical, I need to make it as small as possible. Thanks, Gao Xiang