Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7030990ybi; Thu, 13 Jun 2019 08:25:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQMPE042KM05GUaj241dK8os1iUSjM7V70GU/2IK8PsRqwovE5OTV4untwerDlxP5NRfeG X-Received: by 2002:a17:902:7004:: with SMTP id y4mr5553232plk.31.1560439522955; Thu, 13 Jun 2019 08:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439522; cv=none; d=google.com; s=arc-20160816; b=Sm1yogpUT3modCbdklujX+FgXzILw+fmSE5pnzxMALWkpQsFnC6BfWQnO0wvyqa+6X ijfn1FZ+qQ0FYKPZy1swE9vzWshpfzGUYEhL0fxicQ6gFwUJIQEf+xg0sczJasNMxO/v DsEU3yThd70zxwB3KaOLx1uouLk94E2v4+DRF+XAnNBIc3lft521g2BAqI2vUpAOyI2C zaw8jlM/RWtMx4ttOu/ajnLa2J6KFJXYcRuWs6J28ToX74BpeRKVIVofSv/EDPYz8TXq OmxFmRz5Amy+YozcrhzwkxMVEOBhcEL5IkzIwiJvPF8GTl7mSFHPjgJbl545lTvN2NyZ iGaQ== 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:message-id:subject:cc:to:from:date; bh=/l/UqAqZnFMeSJRnY7XsiijOnZhzthmvp1wjaEsbYDE=; b=z00HofW9Zbyvzu9PznREw4b/ZXZ9FFt5obJtZdnMHxGCdUCto/QUzwTATH9FCOzK+L ssj+Sbp+G9ZvFYS5H8048U+xZg4wMRb3kNesIR6NjIyAen9cwB9i8uQ1W0Zb5oq4Kvpf 6b3toVxyRDJmD1vWBpQgEmVQWCE7CwxT08Vlo/6zq2fEpYsXVs9Db6IKI9uhPqH1kHo2 hZ/IahSKQo1kzQjhmz8Ami4ZeK9HjBgIXVaZvXkXl5AmY62PnbwFUbtTPIB77yxN1/Iq jPn6GLdoYObHI2AhkOUbyx46rHMQ6NFwf4mqkcDh9GZbgudIlDXUYPb4XwnTB4PiOXTM vg0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 35si3474223plb.62.2019.06.13.08.25.07; Thu, 13 Jun 2019 08:25:22 -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; 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 S1732981AbfFMPYB (ORCPT + 99 others); Thu, 13 Jun 2019 11:24:01 -0400 Received: from foss.arm.com ([217.140.110.172]:39072 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731746AbfFMMWv (ORCPT ); Thu, 13 Jun 2019 08:22:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 42F202B; Thu, 13 Jun 2019 05:22:50 -0700 (PDT) Received: from C02TF0J2HF1T.local (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 65EAC3F694; Thu, 13 Jun 2019 05:22:48 -0700 (PDT) Date: Thu, 13 Jun 2019 13:22:43 +0100 From: Catalin Marinas To: =?iso-8859-1?Q?Andr=E9?= Almeida Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel@collabora.com, akpm@linux-foundation.org Subject: Re: [PATCH v2 1/2] mm: kmemleak: change error at _write when kmemleak is disabled Message-ID: <20190613122243.GQ28951@C02TF0J2HF1T.local> References: <20190612155231.19448-1-andrealmeid@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190612155231.19448-1-andrealmeid@collabora.com> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 12:52:30PM -0300, Andr? Almeida wrote: > According to POSIX, EBUSY means that the "device or resource is busy", > and this can lead to people thinking that the file > `/sys/kernel/debug/kmemleak/` is somehow locked or being used by other > process. Change this error code to a more appropriate one. > > Signed-off-by: Andr? Almeida Acked-by: Catalin Marinas