From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABA3AC433FE for ; Fri, 15 Oct 2021 10:31:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C4EB61041 for ; Fri, 15 Oct 2021 10:31:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238020AbhJOKdW (ORCPT ); Fri, 15 Oct 2021 06:33:22 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52371 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237984AbhJOKdT (ORCPT ); Fri, 15 Oct 2021 06:33:19 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 44DC81C0011; Fri, 15 Oct 2021 10:31:09 +0000 (UTC) From: Miquel Raynal To: Zev Weiss , linux-mtd@lists.infradead.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Michael Walle , Zhen Lei , Lee Jones , Tian Tao , Jon Hunter , Petr Malat , Brian Norris , Boris Brezillon , Mario Rugiero , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: core: don't remove debugfs directory if device is in use Date: Fri, 15 Oct 2021 12:31:07 +0200 Message-Id: <20211015103107.948869-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20211014203953.5424-1-zev@bewilderbeest.net> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'c13de2386c78e890d4ae6f01a85eefd0b293fb08' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-10-14 at 20:39:52 UTC, Zev Weiss wrote: > Previously, if del_mtd_device() failed with -EBUSY due to a non-zero > usecount, a subsequent call to attempt the deletion again would try to > remove a debugfs directory that had already been removed and panic. > With this change the second call can instead proceed safely. > > Fixes: e8e3edb95ce6 ("mtd: create per-device and module-scope debugfs entries") > Signed-off-by: Zev Weiss Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel