Received: by 10.213.65.68 with SMTP id h4csp390238imn; Fri, 16 Mar 2018 06:25:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELuYFT0E8s5oZP4gltiraWhUL60RThvAc4zgnzzQqWRTfnbiiXOPpoxhSG/pf4wR7AXL+W15 X-Received: by 10.167.128.194 with SMTP id a2mr1619680pfn.186.1521206727364; Fri, 16 Mar 2018 06:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521206727; cv=none; d=google.com; s=arc-20160816; b=gvPm85Df2AA2oTttbPD03sG9JNjZ15W/552E1wNcSWPG86Tv4FwbWzdjCRD7GhD8KF cozLFz4xukeevgCKtlf8m3zfumB/6lmvN96db6zvgWtoZPrmQn06N/e0TeUQT4c4/0UJ FbB2ug1SPwfGY/uLb7Ji3jN7/pESo/lDfdnusPFXm6rlrZEofL2tQjPqCTdmn3XRvA1S V7UoBEz3PDkDBaDyJ24bfC9eyNol8Oq/Xbn3uXoLFU+8qhd04R7lUEroZxV+1FsG19qB YeUa7L948il5tVaa69CoCw1AXEZuZdSiJaLEn59YGTb3tHW+/FaRnSmjMQks4DkKoci1 iyEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=MWj8hJcMX4L18hhEleO232uIIUhhR/H86W1Ww/OYXqk=; b=bCQd0geV/h5WZjLFUkMoyLNbOdCnT8XbxshbMl4oE/wwveQTR+2tFeNcaUZsqlaK/x oOE6HDbgBu7cKz8Jz/3ymG+ECsfy/7U6/Cu9dGChEBoFigmUgsxHQcI9aKyuJe2P5m+a WJ4ZVnCpOwL2SO1mdgbSt6XExglWyTrt4XPdp9Ebxb8+80+1TzibrdtpVXbB9a1QqBBm cqqNAjyC/0/byB+Q4kO5igy+QtNDRwr/xxaQcDMuiqnLaeoA1kqBNSlsc910XM747mtj dJ7LdLInGOJJS7VkEBgZK3kA9FDEmzthPTyplms/GuNfGVXjoiCp2d2Abqjsg4f0Oa6q ctmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lZuVk9ST; dkim=pass header.i=@codeaurora.org header.s=default header.b=lZuVk9ST; 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 u7-v6si6028112plq.460.2018.03.16.06.25.13; Fri, 16 Mar 2018 06:25:27 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=lZuVk9ST; dkim=pass header.i=@codeaurora.org header.s=default header.b=lZuVk9ST; 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 S1752720AbeCPNYG (ORCPT + 99 others); Fri, 16 Mar 2018 09:24:06 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60818 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbeCPNYF (ORCPT ); Fri, 16 Mar 2018 09:24:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B9CB860591; Fri, 16 Mar 2018 13:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521206644; bh=tSiHqDtGdk1S1JGvzClFl1I5lN9OULox92OOcJ6+ssI=; h=From:To:Cc:Subject:Date:From; b=lZuVk9STEocuEpx5JFRf/lPEIDk6ykyAxsAg8/0AnkK3JJpKNVe4nd25BKhfeArjk WVe5VuUR3hNeC3dBWM0JqM8YZ3ne5+aRYBOH0nLW7m5F5uwsfJkRnJ1bVInY/XDXWW xgGmzbR8jFaFmWSHP2Jj/SpIwrdbGpWT5uSWU604= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld448.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: riteshh@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5DF186030F; Fri, 16 Mar 2018 13:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521206644; bh=tSiHqDtGdk1S1JGvzClFl1I5lN9OULox92OOcJ6+ssI=; h=From:To:Cc:Subject:Date:From; b=lZuVk9STEocuEpx5JFRf/lPEIDk6ykyAxsAg8/0AnkK3JJpKNVe4nd25BKhfeArjk WVe5VuUR3hNeC3dBWM0JqM8YZ3ne5+aRYBOH0nLW7m5F5uwsfJkRnJ1bVInY/XDXWW xgGmzbR8jFaFmWSHP2Jj/SpIwrdbGpWT5uSWU604= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5DF186030F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=riteshh@codeaurora.org From: Ritesh Harjani To: jaegeuk@kernel.org, yuchao0@huawei.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Cc: stummala@codeaurora.org, Ritesh Harjani Subject: [PATCH-Review] f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read Date: Fri, 16 Mar 2018 18:53:52 +0530 Message-Id: <1521206633-21378-1-git-send-email-riteshh@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Observed below deadlock with quota enabled on f2fs during low memory situation. I think during f2fs_quota_enable -> which is doing read_cache_page with __GFP_FS flag set, due to low memory this is causing shrinker to get invoked and thus going into a deadlock due to mutex lock in dquota. Commit details in next patch contains the call stack. Since I did not had the quota enabled on f2fs configuration, I could not test this on my setup yet. Could the community kindly review and let me know if the patch is correct or not ? Ritesh Harjani (1): f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.