Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5198772ybi; Tue, 4 Jun 2019 02:58:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7lmHjxSTtlM5Iext3fZMKMgz+bWaGgtSu8nRP9Vhi07fziF8MFyPO2Iki2rwzKNrn5Oig X-Received: by 2002:aa7:8ece:: with SMTP id b14mr27626499pfr.244.1559642320695; Tue, 04 Jun 2019 02:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559642320; cv=none; d=google.com; s=arc-20160816; b=YA6QYtVnVmb/4lB9C4d0S7bnSUu2trUTLaHQCn39/NLZrKAC5+Ye6th1iw1INmUQAO Tl/arbJIPjqX3/f6s7LlGiUaYErz1Mzj1vpS7D5JT0HQ/0dD91YD2BSIDXU0x89EkRJN dKnL2mQPthEntwBVrvzMSdc/bT1o3WF6GgKf1Z48e8Nadb68jfv5dDz5XVjiU0K4fCh/ IQwY7vG7qQXxuC6rrWiAZ68+DpbjobpmoU6tK9s/ByS02IuTFByjeehKlxKQb327lrDG i53BPhLPJeCzVN8+lwcj2X3VKRCNKCrF+8LtNmEDFjNZuiJFsmJEy0OW3oIdSeC+nTl2 pJ1g== 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:to:subject; bh=ZEmgWwltlzWyl5vdlCIadlKoUWfwdVxkWHCw6egmlYg=; b=VB5V5yI1F9pOgzATHfwuG4CIzugSE/HwfhpXwYZZvBv9DIdtg0dGshrLlL/Hd1JoIg 3Q9ZaEKo9nNw8X4AxfXuJ4qcbg3MrkpdGVKbMsBloZsOiqTp7l3oKmMgjPJzR+dR/cIC ii4RfikNpE0WnqvHDo1K4tFFwxrtwixPerE6uggWxqjHh5j37V9fp9f68yCDVx4OiIwf WfiiTa21qJos0VCxY69ZVYog2gAljfeR7mz/1ggJHvLPx+vXdXEQ7BTEiV7Hl/h4xKv4 ghkKASMgkShMJT7aiVh69Pqpj+g8PNISpl72hwQRUginMy6i4Hr/QI0ErjDGHMtkemX/ Y4Hw== 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 m14si17228530pfh.99.2019.06.04.02.58.23; Tue, 04 Jun 2019 02:58:40 -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 S1727129AbfFDJ4h (ORCPT + 99 others); Tue, 4 Jun 2019 05:56:37 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:18080 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727075AbfFDJ4h (ORCPT ); Tue, 4 Jun 2019 05:56:37 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7D02DE4F6DB8E951CA4C; Tue, 4 Jun 2019 17:48:55 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 4 Jun 2019 17:48:53 +0800 Subject: Re: [f2fs-dev] [PATCH v2] f2fs: add a rw_sem to cover quota flag changes To: Jaegeuk Kim , , References: <20190530033115.16853-1-jaegeuk@kernel.org> <20190530175714.GB28719@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: Date: Tue, 4 Jun 2019 17:48:52 +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: <20190530175714.GB28719@jaegeuk-macbookpro.roam.corp.google.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/5/31 1:57, Jaegeuk Kim wrote: > thread 1: thread 2: > writeback checkpoint > set QUOTA_NEED_FLUSH > clear QUOTA_NEED_FLUSH > f2fs_dquot_commit > dquot_commit > clear_dquot_dirty > f2fs_quota_sync > dquot_writeback_dquots > nothing to commit > commit_dqblk > quota_write > f2fs_quota_write > waiting for f2fs_lock_op() > pass __need_flush_quota > (no F2FS_DIRTY_QDATA) > > -> up-to-date quota is not written > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,