Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4799960ybv; Tue, 11 Feb 2020 03:45:15 -0800 (PST) X-Google-Smtp-Source: APXvYqy6TuML+cxbv83BEd4WHM1VEW5yt1c2vQw+d3HsZLbOcbVerMfgC+dFz2p142LhvBSGK85D X-Received: by 2002:a05:6830:1bd5:: with SMTP id v21mr5200130ota.154.1581421515686; Tue, 11 Feb 2020 03:45:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581421515; cv=none; d=google.com; s=arc-20160816; b=y9EVxKTUsJ4wsvs0qmv0IfIIpgQ405Ovk/zGficfA2idPNVTHPsme/LxQUEWBMNoz2 1tQ8T82ZAXiCEyKC/gsg/hPyNtXxqST9AU9ObVr9T2aD2ydQ4y5wzdIQbtJVvP8uXcPT U1mFnasmgzPEueIGwmNLQyYH2+rtKUIDUoS6JnedZAsxtYdIpDx5NZPh8UhJ7vNBvVe7 zVbSJ8usmJpALdT5VvJBnjGO6z1lcCsHoiwvTlWsIRf5EhPQQxXkDoNqah7GTk7dXGA+ eTC/YYNQFNIrSbUr0Xj/XmHFpkKKOTKHVbPKrf8WfQGObjaHYhQMIqiitDgSxM1QE1Gq +e5g== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=h5viDbKJco0RXtezyZlzb4CvmYs6comyc71R14etmZM=; b=fAV2GhDBZ4dtN+hKe9nHhZe96gGz+ZAz/GesHQjO76gMM5QIIpz19McW4BVukp3BMv ZAlKPU5jp8ffOSItLebVU1OEk3FHt8vLs4SZvbCgY0GJJfHea9lAblD754wDuyw+VLf/ dkXV+I50vDhCDQCP8mMRCJ6FZEOrM1cMzlxmbYfE51AyMWE8vznBvclnP0eqPX3hHYTn 6KOu0vipdA5+ZIP+h2d6UpTjCjIJniBbWY0jJKtH3dWYf4hph/YhBZjDKGpYxSd7/e3i Lx6LA/I2NzCB6MLbfBnClqZaWTcFP279SqYCXQTif1CjZMv2iWfq/OL4l9jmAEBSZIqH ndzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wTJnIZ76; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si1648602oic.126.2020.02.11.03.45.03; Tue, 11 Feb 2020 03:45:15 -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; dkim=pass header.i=@kernel.org header.s=default header.b=wTJnIZ76; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbgBKLBd (ORCPT + 99 others); Tue, 11 Feb 2020 06:01:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:33084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727561AbgBKLBc (ORCPT ); Tue, 11 Feb 2020 06:01:32 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E320D206DB; Tue, 11 Feb 2020 11:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581418892; bh=eUexnhmDU3VQ4N25ffYXIeI9ds5eo9F52594vkxGwtI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wTJnIZ76EOvxxyQX8ypEeoMOR00rT7sBTuBYSgoONN/4a06djSfASD6PyX1UtE9ft RIiE2yvWlsp4sZ5LZtsvolWK6rGJLa16J+lYD55NqmpGVNBxVHIM1Jt0I+hmeB/IcU 8NVQNeeXx0nOxh+AvnzkYuJtnbD2yfJJdAWMd8nM= Date: Tue, 11 Feb 2020 11:01:27 +0000 From: Will Deacon To: Greg Kroah-Hartman Cc: "Theodore Y. Ts'o" , Jonathan Corbet , Saravana Kannan , Jason Baron , linux-kernel@vger.kernel.org, kernel-team@android.com, Randy Dunlap Subject: Re: [PATCH v6] dynamic_debug: allow to work if debugfs is disabled Message-ID: <20200211110126.GC8560@willie-the-truck> References: <20200123093628.GA18991@willie-the-truck> <20200123085015.GA436361@kroah.com> <20200125101130.449a8e4d@lwn.net> <20200125014231.GI147870@mit.edu> <20200123155340.GD147870@mit.edu> <20200209110549.GA1621867@kroah.com> <20200210211142.GB1373304@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210211142.GB1373304@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 10, 2020 at 01:11:42PM -0800, Greg Kroah-Hartman wrote: > With the realization that having debugfs enabled on "production" systems > is generally not a good idea, debugfs is being disabled from more and > more platforms over time. However, the functionality of dynamic > debugging still is needed at times, and since it relies on debugfs for > its user api, having debugfs disabled also forces dynamic debug to be > disabled. > > To get around this, also create the "control" file for dynamic_debug in > procfs. This allows people turn on debugging as needed at runtime for > individual driverfs and subsystems. > > Reported-by: many different companies > Cc: Jason Baron > Signed-off-by: Greg Kroah-Hartman > --- > v6: fix up Kconfig help, it was a bit incorrect,thanks to Saravana for > the review. > v5: as many people asked for it, now enable the control file in both > debugfs and procfs at the same time. The 'ddebug_lock' mutex looks like it resolves all of the races here, so: Acked-by: Will Deacon Will