Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp890822pxb; Wed, 27 Oct 2021 14:33:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGprNwYSWL7kSMPN1JK2UoBFnSot95UFKwXDTkyPDA+xriQ6HujcYeGn8b/9LzmkXZmPOw X-Received: by 2002:aa7:cb59:: with SMTP id w25mr470317edt.309.1635370438774; Wed, 27 Oct 2021 14:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370438; cv=none; d=google.com; s=arc-20160816; b=tedAW9ZWEbyXPTA1aOHN3/5v/mJ3mvt2d9fDWlv0sWVZwF2NWt64TwW3oxxw41UCqV L8busaSLRs2mN9DiyEmRfqZ83almHQn7DbZmIjA7kNnKB6oZYnPMRRWeDGSTo9kiBpgq OI3abbYYy/S6wHSzkaa0r0axKBtAnqv1OvWjHI0MdK4FS8+UlBnybUVGYErX/623r/8U JjW1F9PV5MILCDL3NAOt/+bSapDp/f9idP5lFjYfmdX+6pVrO+L1ZzKWstZ9eKgPjQIr BkZRmZxUPtWKbsEOswFY4HMyDwupFYGxPl6itcQdhh/FnPk+tNZqxPT55nQBURswzX/d 6/DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qA/KGY3jUxUtYWT2WGNI33Dl6A0vyDSF7oCZ6oQZ9Os=; b=qH6gJQkTXXuffyL5K1sLdekJgoQxgLLKeqXLqzCx5OoGOiSC+NLhYmUNA9aR86XD+P uRXz8J3geSlRc5kxRj0ru6a1vx5MQ2i97JYIhm/czcW/iF2tsxOvPKhSLBqJhXeZ3f/5 HbsHcO7Q7T88IlIRWL1p+DlkhE7XvbICqod+kGDVNnH/+t3yUyQY+VlBPAcPDzyE+zVq gQzbOdXi+jCkW26uTER3AxW+yHSHvFneBjdgiEkRNyw7nfzIHLDpfKjNrrbg4AXCHn2V 5lIV6AFs8Qr8Poie/rB1qRgkG+TK+sPi73CpPJcKAsIUTDikrZtZm4X/M6s5a7yCVpEx fX6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fMxfuniL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si1287626edx.109.2021.10.27.14.33.36; Wed, 27 Oct 2021 14:33:58 -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=pass header.i=@gmail.com header.s=20210112 header.b=fMxfuniL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238333AbhJ0SjV (ORCPT + 97 others); Wed, 27 Oct 2021 14:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235990AbhJ0SjU (ORCPT ); Wed, 27 Oct 2021 14:39:20 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97CEEC061570 for ; Wed, 27 Oct 2021 11:36:54 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id 205so6223639ljf.9 for ; Wed, 27 Oct 2021 11:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qA/KGY3jUxUtYWT2WGNI33Dl6A0vyDSF7oCZ6oQZ9Os=; b=fMxfuniLnTqucFG0YhxpsugZFF/eJGNK4ZbX4LY9fEmRxdrJbT5w9lcfOs7LN+GXYf Hsx6bj8CmeNqESGg6NbYAimJq36WEV/JIaMRB2Ckqs2ytl39CZvDv9m2AJKRIituY0lp BDPRE/K5+XlaNuf+SAkqOwHQc8/5O11g4fTLVvllUF81QMfItFbrRb9AQGv5BZUTs73k F1hYAQs9FhR88FWOY7IAQo3YmuIHw+w1HJ55DpUdmQrKuF5Z+1iCO8UPDc0KMSl0IJ7l PDXENdnLnYQzqGxeLyKbfrQShwbEWbcVnGtviIgv68LasTuItoDmHgwTxwck5gg06Fc5 crjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qA/KGY3jUxUtYWT2WGNI33Dl6A0vyDSF7oCZ6oQZ9Os=; b=2LXZH/A+BnRRRv5AqXAo15Q/RMAjqXxTUxckSYTOOtnbStJqcsmCIBkeWs5ahG6yvH MQMZyPKs558daOeZp60ICGILWNoe+Z6OFYPfEXMq60Jgn3ezxWfepWxgVR0UlYsjyqza jbeAnlpYqUc9jbucBh+2jCh1UWl1opqXx/tfctzaz7KSEVXzxKXXM9ik8I2D164C4Qlw KFpV/He3tmzkhxQZRkPLNerfLQhb++qdqv/Kz2N7tfWddB5Ys4sRLwpnvhXbvWdNJCTf MwNaMWlTsCgD760qsSgUo47Z1QCEIootVZSowEBhXrkfq5/kygW1WW6rcmyb9O8tzwWp rlCw== X-Gm-Message-State: AOAM533xluASJI9Tk1rqgcsqqKv/6DBACO4uyXj1YJeBU3brpZODlZJQ QcsnR8UCBfkf+HFaLVWPzELvdL68uerC5QrQ/sk= X-Received: by 2002:a2e:960c:: with SMTP id v12mr34402683ljh.344.1635359812899; Wed, 27 Oct 2021 11:36:52 -0700 (PDT) MIME-Version: 1.0 References: <20211014190503.717830-1-daeho43@gmail.com> <3ddb4013-8d63-7c00-6fdd-1f21752bd60c@kernel.org> In-Reply-To: From: Daeho Jeong Date: Wed, 27 Oct 2021 11:36:41 -0700 Message-ID: Subject: Re: [f2fs-dev] [PATCH] f2fs: remove circular locking between sb_internal and fs_reclaim To: Chao Yu Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 26, 2021 at 10:56 AM Daeho Jeong wrote: > > > Yes, I doubt the problem may also happen in f2fs_evict_inode() with below > > callpath: > > > > - evict_inode > > - dquot_initialize failed > > - sb_start_intwrite > > - f2fs_truncate > > - dquot_initialize lock dqio_sem > > > > How about this? > > > > Got it~ > Then we need this in both f2fs_evict_inode() and f2fs_drop_inode(). > It turns out this deadlock issue was related to the Android kernel only. :( That was related to one of Android tracepoints, which triggered internal memory reclaim inside of it. We made a workaround for that in Android kernel. Thanks,