Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5028383ybl; Mon, 9 Dec 2019 22:21:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzZGO8q+P+bvK7CiGtMcJKV/90h+RJeiI1yUDUSO1gebm8RUWUkBDxliHHuY+KuQacuNXhT X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr24480697otq.274.1575958865727; Mon, 09 Dec 2019 22:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575958865; cv=none; d=google.com; s=arc-20160816; b=KmgvTJJr2leSjDxhUD3MIYuVk4EdkgWSqAjeu7glcD+NmDZ6wLm+knWbT4VS6INzZk YMdjNV3U+IR+hUsQ5l71ALM6yUBysn8Gie6Hl+N+C/V3EM2eCLlgFbWsVFfeLVp6VjIc tkXhgLa2pHGw5nL39Tj+yg573S05uC3LhCeQJlurszPxPkpwCTmBCxo2/AtrDd+bc6ww P9KIEcDGCU0UacZ02bfYFdU1zexD54QVaK+UIs5m/QlpXfxLZ4e7ID/mbxHHR/28vCr7 93yIwZksjPvtFoC14qE80QAQ2iF05ea73+FgQFSfwpYJo+Deagm8yOTWxree1iEmeUDq WuPg== 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=L7ZwI6NAWYN/6ImDQ5QsmsHRNlvio44LSOG15Rs9RsY=; b=RoaHJBvC/JNwZIdezSFGjg0p5AfXQ8Pl4pbb4UICWek9I/tOqkrgmBKPZyxDLxuXUO fCla0+DWELLNft6WugjpXkKyjYdq3wriaIb/Lm7998ftUL4FNEQ8DjkQjblztLGD8jU+ MjEdLzgfnR80YJQ5SyOxnZkt76PcUAKmX21S1vnGpYzT5O8G/ecmiuvZ9vepwpnLhEMd luUxEbWI4sD5HhmE7Iel9C9H8fSQ79eONh718G6+caIsX0THJVyZ2yAqwo4lEy39I1uJ Z5mTbnMxVOWn24MW9ia4GwuBjAOxdaDGe/V9eAW5DD3b6OShsUzhRTHrwz0GuWWMOO5c fq5w== 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 y23si1424284oti.65.2019.12.09.22.20.53; Mon, 09 Dec 2019 22:21:05 -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 S1727139AbfLJGUS (ORCPT + 99 others); Tue, 10 Dec 2019 01:20:18 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7655 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726085AbfLJGUS (ORCPT ); Tue, 10 Dec 2019 01:20:18 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id C5BBAE8131B8A882445F; Tue, 10 Dec 2019 14:20:15 +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, 10 Dec 2019 14:20:11 +0800 Subject: Re: [f2fs-dev] [PATCH 2/6] f2fs: declare nested quota_sem and remove unnecessary sems To: Jaegeuk Kim , , References: <20191209222345.1078-1-jaegeuk@kernel.org> <20191209222345.1078-2-jaegeuk@kernel.org> From: Chao Yu Message-ID: <0668612e-678c-e434-277b-d393b9933250@huawei.com> Date: Tue, 10 Dec 2019 14:20:11 +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: <20191209222345.1078-2-jaegeuk@kernel.org> 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/12/10 6:23, Jaegeuk Kim wrote: > 1. > f2fs_quota_sync > -> down_read(&sbi->quota_sem) > -> dquot_writeback_dquots > -> f2fs_dquot_commit > -> down_read(&sbi->quota_sem) > > 2. > f2fs_quota_sync > -> down_read(&sbi->quota_sem) > -> f2fs_write_data_pages > -> f2fs_write_single_data_page > -> down_write(&F2FS_I(inode)->i_sem) > > f2fs_mkdir > -> f2fs_do_add_link > -> down_write(&F2FS_I(inode)->i_sem) > -> f2fs_init_inode_metadata > -> f2fs_new_node_page > -> dquot_alloc_inode > -> f2fs_dquot_mark_dquot_dirty > -> down_read(&sbi->quota_sem) > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,