Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp817560ybz; Wed, 29 Apr 2020 09:55:29 -0700 (PDT) X-Google-Smtp-Source: APiQypIODEI8s8qKsx5pq1/mrLgWdTZh88c+SzneO5AMXEyL8TmcxFUs+fNmo6CijsTm7qSRAQmM X-Received: by 2002:a17:906:4a4e:: with SMTP id a14mr3581865ejv.363.1588179329551; Wed, 29 Apr 2020 09:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588179329; cv=none; d=google.com; s=arc-20160816; b=m8FeN72rDnVDKpwpT4uQfwk/uzPkSfTzJF7HwDPeGAjKBnkmElwM0n25oQot1RTyP5 sITXjHsjxyXoH417h724/Fdqp36H1kr8m5QKTXpuzmSK0vHGEEtAmlgb3aLSbxXOI3KC hlGobyWfwAYrYm21Usg12i/RDzdCF+ZyI0dgowax7ZNfeTDraNiR0Ykuz6PHyYq09yk9 jhEirPyHI0bORgZC/bFSe6vjTFLRjx4t3DwUp7Eh5k3cEOeh4HuFDEsfsPebqnU/KEcu gNn4TYqdEDRM3/ZqM8R1Q/80x98rJd8ZC9XttBRC2w+UQN3Mr9qj127vo8q29ekZVB8d oT9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=xhYN2QWZK+xOvZ83m2HJKcXlXIC6qwCWYYV5qQiwaZg=; b=K3nWBsE9pSdlLaErecF+WsNewRvTth+1wIUH/BeJh6f8Mqtg7aI82TAcaagdx9dt8D RrhLc4z/zXesPxQypWQQFI/Te3010t8eCnJoijdZx4xuYxtH+SLWeTKF8ITBEUMNkkhR honf7OGQmKNY45Mc7Kk6KSbIxyKeT3db+fpU81abr8vdUlhxLKAJ/Xl9Qcx08ucvkqrL ZXVsS4ncCAUnB4+X/DbAiEaGa6PrhwIeGBMeBLH5gu5sGCy/m4FkyBefVLKlpqavkXAh 4RQX84izjDPIHKqEPNZa6VrsOOG4Rv47UeZr6+qMGQZrJMi5Df1P4AbF4soJasNxnpp+ gT2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=AYXh370S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si4550928edb.156.2020.04.29.09.55.05; Wed, 29 Apr 2020 09:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=AYXh370S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbgD2Qx0 (ORCPT + 99 others); Wed, 29 Apr 2020 12:53:26 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:49553 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbgD2Qx0 (ORCPT ); Wed, 29 Apr 2020 12:53:26 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588179205; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=xhYN2QWZK+xOvZ83m2HJKcXlXIC6qwCWYYV5qQiwaZg=; b=AYXh370SCUTKre/ZEhlmwng9jPjPGDUo2SsRllMjTdar7PAHLm7snF88xbeyu3ANHMexqqpM mAujGqMjbttJXQCRlHC7Ea3ogGwEfX2IDlbrormGnrku7IHu/7MmMXbB5gL0eVbcBgwvRakH tnBVWnrI6F3ZEv3NRD+LJVpZ+cM= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5ea9b0f0.7fe0ab509f10-smtp-out-n04; Wed, 29 Apr 2020 16:53:04 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 14586C433CB; Wed, 29 Apr 2020 16:53:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.0.102] (unknown [183.83.143.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sayalil) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8EAB0C433D2; Wed, 29 Apr 2020 16:53:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8EAB0C433D2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=sayalil@codeaurora.org Subject: Re: [f2fs-dev] [PATCH V2] f2fs: Avoid double lock for cp_rwsem during checkpoint To: Dan Carpenter Cc: Markus Elfring , linux-f2fs-devel@lists.sourceforge.net, Jaegeuk Kim , Chao Yu , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <07a820a2-b3b3-32ca-75ce-ceaca106d2c6@web.de> <433d4ad5-22e5-fd2b-cab3-9752ed0c66fb@codeaurora.org> <20200429124402.GP2014@kadam> From: Sayali Lokhande Message-ID: <71c37cbb-03cd-134f-8b68-cf06bfa05317@codeaurora.org> Date: Wed, 29 Apr 2020 22:22:58 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200429124402.GP2014@kadam> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/29/2020 6:14 PM, Dan Carpenter wrote: > On Wed, Apr 29, 2020 at 10:28:36AM +0530, Sayali Lokhande wrote: >> Hi Markus >> >> On 4/27/2020 4:08 PM, Markus Elfring wrote: >>>> … This results in deadlock as >>>> iput() tries to hold cp_rwsem, which is already held at the >>>> beginning by checkpoint->block_operations(). >>> Will another imperative wording become helpful besides the provided information >>> for this change description? >>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=6a8b55ed4056ea5559ebe4f6a4b247f627870d4c#n151 >>> >>> Would you like to add the tag “Fixes” because of adjustments >>> for the data synchronisation? >> I couldn't find any past commit which suits to be added under "Fixes" here. >> Let me know if you have any other comment. > This looks really old. Maybe commit 399368372ed9 ("f2fs: introduce a > new global lock scheme")? Yes. Let me update it in Fixes tag in V3 and post it. Thanks for pointing it. > > regards, > dan carpenter >