Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1896321imu; Fri, 23 Nov 2018 01:39:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/VgnUxdZgUzKBE0pLWX0aJIqnk6xajeVBMKtK2FNYAU1agu38BQfcVokL8kK3cg/1LCT7Ko X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr14863786plj.116.1542965988904; Fri, 23 Nov 2018 01:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542965988; cv=none; d=google.com; s=arc-20160816; b=ZFpFlkPDBzHAOzU+UH3yezBDhQd9rxAngcjuUQBcO8Vdg/d7o0j1zQ673wueWSoM0B yoGBQNHE5s8eIZ5rgyJYspU9VgD12q747CNACGmC+CZ0zfZeSpATjoHmLW/da3CccFMq N+xq2pY6+KCAX5zNwuvMJJJ6/S7Gk1r6v87tp9dmt44jXuLNgPDHaIf24MImeNjbCaaj oW8JiaRsBTAGgrkoGD+LdUJOD6Xi8uJy8I/F3DJuTwmdtbbQTSUYPy0zgDiXq2ajXdlY Bhdsb6wtjpnVuorRiUxekhunGid2TkeKTolG9689o/EceM3Y4ArnHtKx2syXvtEINKYb gybw== 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=4o3wdbBkgyBGfyE1d6q+CIoIZlS3QQ2JbgbLhY58ugs=; b=hEDq+gCVnBSH3/kDJC+I3uw8ngQCUwRIq7Ogb4kUyvvyUjePviFEdmiNL+UCID6Ae7 4ZmI/KhrTS2Vpx/xPsVPeOj2UnwUnHih1kHeDZwwrGICqsbjeIVoiOpkW61FLeo28MZi AA9wZOKDSykOVf9s2nA8vvQTB/jVLCeHzSS4OMPBXwjr/HfObbBN1F8XtRkC8nbZyJDX afRd1CFlARq4NiUB6qKy7Y8vZeXLgB1gry6KUbjKlgqMnMdr3MIIpDg1zDdv30eHptYT kIr3vXhhlAQ+2TzPPKxbkS1Ar+hn2HbBO/pQ/XZqUmSV5vLE4J+tAnbnNH1KjZojns7k jFWA== 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 t4si35039816pfj.183.2018.11.23.01.39.33; Fri, 23 Nov 2018 01:39:48 -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 S2390511AbeKVVfn (ORCPT + 99 others); Thu, 22 Nov 2018 16:35:43 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:47772 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732079AbeKVVfn (ORCPT ); Thu, 22 Nov 2018 16:35:43 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6A828D19FE95E; Thu, 22 Nov 2018 18:56:40 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 22 Nov 2018 18:56:31 +0800 Subject: Re: [PATCH 05/10] staging: erofs: add a full barrier in erofs_workgroup_unfreeze To: Greg Kroah-Hartman CC: , , Chao Yu , LKML , , Miao Xie References: <20181120143425.43637-1-gaoxiang25@huawei.com> <20181120143425.43637-6-gaoxiang25@huawei.com> <20181122102230.GF3189@kroah.com> From: Gao Xiang Message-ID: <1d1fd688-0cb5-cbac-9213-f56f7e356bca@huawei.com> Date: Thu, 22 Nov 2018 18:56:32 +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: <20181122102230.GF3189@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 18:22, Greg Kroah-Hartman wrote: > Please document this memory barrier. It does not make much sense to > me... Because we need to make the other observers noticing the latest values modified in this locking period before unfreezing the whole workgroup, one way is to use a memory barrier and the other way is to use ACQUIRE and RELEASE. we selected the first one. Hmmm...ok, I will add a simple message to explain this, but I think that is plain enough for a lock... Thanks, Gao Xiang > > thanks, > > greg k-h