Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1912643imu; Fri, 23 Nov 2018 01:59:17 -0800 (PST) X-Google-Smtp-Source: AJdET5cMHnX1dq3WDWR13BBivMbCSN7jJQbBcS31Jt10TgRXcV7tI8EfUMjSUvTy6fjMlwnHslfJ X-Received: by 2002:a62:a511:: with SMTP id v17-v6mr15122455pfm.18.1542967157544; Fri, 23 Nov 2018 01:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542967157; cv=none; d=google.com; s=arc-20160816; b=jQUkXT3+tk7WHZuIgMtGfJrN1fbwYuE1Ut8Vddu0qSaPTe0qxHSUl73201u4qhcYuz t9LZh47NvODGD5cJIpLyv+ArCDIqqZznvkC++lV1HeHMTGAFWh/VdrSyQMCxhKPDFoKj BkSq3L7Cl5Ug0fGzBJnTMjmwa/uuzWe/Cg/NHKdQz+drdVhRDClyvOkxU3VX3ET2rL4r i3tTGLmNsQEnMDpXfhjhJrQuMykqv0el1zopDs/yglaO0xN97PI+MnZrJUnnjetvVPQv ViVLXlf21FTCsnPwV1CTiBwjpLaqGlAWZAf0c75gPHvknP2vSFlLwZ2XJhMuB30e3b4S Z4tg== 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=2pZQc0gTGmWIsSgLG5+FXeGdvA7n2L/1scUwZJDosJI=; b=G3x0CpHAjigXpKHkaglC4FI0R2tFO2F4Y9SieAklj5nTVR0nDKM5/KZsrn1JCD8Go5 yUzhyCsWBqh7D0rofZxSlmpX4VYK7ilgOnH0Ro6B5pP33rU59cQ9O/dKQos1JoaxmXIs mIPV61qktyGt/r4OD/+3s+/uzfOqz0r42V8VpGQ2r/leSsf5nm16Me+zYnJ/lTl440QN OTJ4ebDwF237w3YEeGxfJ+v5AGAeHJSLss2PmD1sqkHPS2lpJPraWPnkGV+Mx+B9qzpN S17t5JOdHgC/8iV0kH6vzHq4lp9BIBf8f0ffX9Xiw/HP2ccogVyEBAdUEvCjaPL5mnZH aIdQ== 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 w24si42466075pgj.582.2018.11.23.01.59.02; Fri, 23 Nov 2018 01:59:17 -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 S2394697AbeKVWBj (ORCPT + 99 others); Thu, 22 Nov 2018 17:01:39 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:56646 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388130AbeKVWBj (ORCPT ); Thu, 22 Nov 2018 17:01:39 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C2E72701CFC3D; Thu, 22 Nov 2018 19:22:39 +0800 (CST) Received: from [10.151.23.176] (10.151.23.176) by smtp.huawei.com (10.3.19.212) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 22 Nov 2018 19:22:32 +0800 Subject: Re: [PATCH 04/10] staging: erofs: fix `erofs_workgroup_{try_to_freeze, unfreeze}' To: Greg Kroah-Hartman CC: , , Chao Yu , LKML , , Miao Xie References: <20181120143425.43637-1-gaoxiang25@huawei.com> <20181120143425.43637-5-gaoxiang25@huawei.com> <20181122102155.GE3189@kroah.com> <20181122110534.GD5287@kroah.com> From: Gao Xiang Message-ID: <8d3a4b4f-22be-9ee9-534b-3ecd97c0b53a@huawei.com> Date: Thu, 22 Nov 2018 19:22:34 +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: <20181122110534.GD5287@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 19:05, Greg Kroah-Hartman wrote: > As I said in another email, doing two things with one variable is odd as > those are two different types of functions. I think lockref_put_or_lock do the similar thing, it is heavily used in dcache.c, but 1) 0 is special for us, we need lock it on a < 0 value rather than 0. 2) spinlock_t is too large for us because every compressed page will have the structure, but the locking rarely happens. Thanks, Gao Xiang > > greg k-h