Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5987925imm; Mon, 23 Jul 2018 09:25:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf3oF5rB9lgLDUCC5Y41vCTIxeeE2xFzkJK7YoZ8gRDji1i/JeGLz3JEYl73Q4jSfCukbvK X-Received: by 2002:a17:902:20c2:: with SMTP id v2-v6mr13799590plg.22.1532363107375; Mon, 23 Jul 2018 09:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532363107; cv=none; d=google.com; s=arc-20160816; b=SmRZCSP8CXsHlhpfyThu4KegBnWkD9SFUMuO8rS04NQ9oJZZPV45jQVAIBjFz+XX61 iiC05ByTufIdnwuREJR685cUQkDRPTQxOb4ur3FOatdbusTczEUu7xq3U0GJ4UFnbLal xcuIx5DYmViYYieI+/iKHf9qUswL1o8haYs8wdDBoocWNC2J2HLNy7caGtvaS768j7cM sXmWDxSMX0k/yAdxXLzkYx02dxwdNrHcUhdSUd/fEgVkL4N+GTRCCJplxgxMAmZSQ6hs F058GXAVK23fhULiYi+DnC4QyigOfK7GLl/SrVdjjAXk/eSbMl7yxbUdE2OvNuvf/AEd ITUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=1vx6/v9z+VUP7z90oycMxX1+tVpB9QCRB7pzQ0glGjU=; b=ZjyWuiuzA6ciCbJsnX2bib77LhVxQN++2J3rgvOuBbZcbsxfwYVomQb6ZikQnuzOQJ FZOelPTjlBV6Oi2ol8OWL5SPsyM0zuMSK+shkCSQCcAjlUoGEbAMkZdJ97Dcusymjn19 F8CvolczfueOuqnhkmQQA6JOgyth8BaWp1WqAH/z/VoXEbHFUqBVFICA3ZH7UnQOoEpm 3NWby5yNlBeuIQWn7LLnNWU+WboC3nyfnASt3nwtZRHxc02+4skyCQ5208dqJNTQ0nt3 pkpSwyzAYR57GSsL5w8UeyRwzPREmNanJxAwddKfkkrbWbSZ5xXEKuDhNO1eK7VPH2nh uqlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=wxixSne2; 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 d23-v6si9070072pfl.122.2018.07.23.09.24.52; Mon, 23 Jul 2018 09:25:07 -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=fail header.i=@thunk.org header.s=ef5046eb header.b=wxixSne2; 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 S2388815AbeGWRZk (ORCPT + 99 others); Mon, 23 Jul 2018 13:25:40 -0400 Received: from imap.thunk.org ([74.207.234.97]:46918 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388240AbeGWRZk (ORCPT ); Mon, 23 Jul 2018 13:25:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1vx6/v9z+VUP7z90oycMxX1+tVpB9QCRB7pzQ0glGjU=; b=wxixSne2ghqqeUG+DZGgFyosyf ZMYkMfif9/q0yKb62OtBspmN+/KZTweQ/zFWgaDV2nKBWkefl6UEM97cL49cg2OF6nui1yeUDvL89 RKXTDV/gW0DiMhudgPfT6Gkj1r3vE4Qv+uAXF1PR11vp2aVDc45t24B1o/gVbiVU3C/g=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fhdcZ-0002R2-Sx; Mon, 23 Jul 2018 16:23:39 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 6B1687A6463; Mon, 23 Jul 2018 12:23:38 -0400 (EDT) Date: Mon, 23 Jul 2018 12:23:38 -0400 From: "Theodore Y. Ts'o" To: =?utf-8?B?7J207KSA7J28L+yXsOq1rOybkC9NQ+yXsOq1rOyGjCBCU1Dsi6QgQlNQNg==?= =?utf-8?B?7YyAKGp1bmlsMDgxNC5sZWVAbGdlLmNvbSk=?= Cc: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, junil0814.lee@MIT.EDU Subject: Re: [PATCH] ext4: remove abnormal set for I_DATA_SEM subclass Message-ID: <20180723162338.GG3358@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , =?utf-8?B?7J207KSA7J28L+yXsOq1rOybkC9NQ+yXsOq1rOyGjCBC?= =?utf-8?B?U1Dsi6QgQlNQNu2MgChqdW5pbDA4MTQubGVlQGxnZS5jb20p?= , adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, junil0814.lee@MIT.EDU References: <1531123108-45918-1-git-send-email-junil0814.lee@lge.com> <20180722220841.GA3358@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 23, 2018 at 10:48:37AM +0900, 이준일/연구원/MC연구소 BSP실 BSP6팀(junil0814.lee@lge.com) wrote: > Then, I have a question. > quotactl() doesn't have case only to set limits flag, the routine to set > the DQUOT_LIMITS_ENABLED flag is under dquot_enable() function. > According to this logic, if users makes duplicate request to set > DQUOT_LIMITS_ENABLED flags, can lockdep make the false alarm with ext4 ? With the upstream kernel, if you call quotactl with the Q_QUOTAON command, it will fail with EEXIST before it ever gets to the file system specific quota code. This happens in dquot_quota_enable() in fs/quota/dquot.c. I'm going to guess you didn't try to reproduce the problem with the latest mainstream kernel, and then applied the patch, and verified the problem went away before you submitted it? Regards, - Ted