Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp822856ybn; Tue, 24 Sep 2019 10:02:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJOJJEs4sk1VlKDKKJV4SYmg2gyyKEMGndEti8kyM8N1aeSStT5a70FLJzxxM+Uw5RanKG X-Received: by 2002:a5d:408c:: with SMTP id o12mr3556933wrp.312.1569344564752; Tue, 24 Sep 2019 10:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569344564; cv=none; d=google.com; s=arc-20160816; b=fxXRW9DC2FHi9T6dwhwy1p60Ae6YgzdOV08eN9nHYj43mMzHm8VGE2uiqVUN1d5kyD IttvxfGOrXVSlLPRPiTZA1A9h9FTyIu+HVCpWANV2mYzoRekAs580BRg7JANVHivwa+P AlHZA88D4VYXZ2CsJWnu7Jxeq3+GaMc3fIDhsVPdxRd0uGHu5y+pXC9jj/4WPsgMYVok zhmGwHzqXwJGN4jnyBXJl4WGvQ/VOm7HQwMF2BSQQ1n6FwsZuGyj59iiir2N7gdknFty 4Zq6ez/wVDwW3XRK9HADEGnxY89txC8sgAz/OwNq/m3aIB6quHvPLM4YPD5opaIeHD4L VFCQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vDgeeE9FEvbf9gzk4SK3Kwa6WOG1VtScj8Q8dvoBmxY=; b=DoIpqDOX+MYzD14YGjj0NTMWcM7Fpu6PwduLUxkh7CbwneyCExaVlrPk0MwowsDJox j/3lreHyAeepl8rMBnsKutFs8lEEcM03jkyffI93jx/phIjZRmefVkXVrAU9pXSNDDW1 HZBJLApb65fgSBWJRn0BrVfTN6rHoLUC0wCdqlDajrdbWWDGa8lIj0QbvJMhxwRGcBmk hMIFGahxZOZ4jxtIEIrQ8kMFfVd4URBjlqC+eefdi8hZMSH5V9L8fF5vj8cHsWl9CNPK Bc2W0jYGnYRgnYm6HjqOK375A44f5ciDw0ccSv6YUBLNhz2Lg5pex0DlNQAx5lUESgSd mb/w== 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 t26si1455619edd.184.2019.09.24.10.02.18; Tue, 24 Sep 2019 10:02:44 -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; 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 S2394035AbfIWMRR (ORCPT + 99 others); Mon, 23 Sep 2019 08:17:17 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:46494 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2393971AbfIWMRR (ORCPT ); Mon, 23 Sep 2019 08:17:17 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D4E86DE395609669D645; Mon, 23 Sep 2019 20:17:14 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Sep 2019 20:17:09 +0800 Subject: Re: [PATCH v2] erofs: fix erofs_get_meta_page locking by a cleanup To: Gao Xiang , CC: LKML , Chao Yu , Miao Xie , Fang Wei References: <20190921073035.209811-1-gaoxiang25@huawei.com> <20190921184355.149928-1-gaoxiang25@huawei.com> From: Chao Yu Message-ID: Date: Mon, 23 Sep 2019 20:16:57 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20190921184355.149928-1-gaoxiang25@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/22 2:43, Gao Xiang wrote: > After doing more drop_caches stress test on > our products, I found the mistake introduced by > a very recent cleanup [1]. > > The current rule is that "erofs_get_meta_page" > should be returned with page locked (although > it's mostly unnecessary for read-only fs after > pages are PG_uptodate), but a fix should be > done for this. > > [1] https://lore.kernel.org/r/20190904020912.63925-26-gaoxiang25@huawei.com > Fixes: 618f40ea026b ("erofs: use read_cache_page_gfp for erofs_get_meta_page") > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,