Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2167950pxb; Sun, 17 Oct 2021 07:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1xFImReFbr8YI1aRi5q5mbZ37miZLicCEccub9RASsgjHlV0pvsze6QItPZ97ScZnyfHa X-Received: by 2002:a17:902:db0e:b0:13e:f4d3:84c with SMTP id m14-20020a170902db0e00b0013ef4d3084cmr21975848plx.2.1634481247317; Sun, 17 Oct 2021 07:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634481247; cv=none; d=google.com; s=arc-20160816; b=XC2K6BDQUS67Q0VR8r+1P8u009PApwcGnIzEZPSJrSJoKcFHokUFnpko2F12h349u5 iO+Z2+6PDIxbmyfEG1YtAKZT8dvELsEQlFM54xDLr1qBOBG7xn7HEVMgrGx83vY4ubtV NGQF9yGJyRdHOXbtxdZF5Z6ajnYqaVyztN2Ecf0VQft+gF+8qvoz1kFUTTQCZyfLMobp mDxY5YUxXziI6Td1twbx/nqZjUaXLqgkZ52B4RzExfoC9mq/pIyu8DquB/zAlWdmKhRQ /N7J4MzqbyobJEbszgmWRrVlIc0BkmoUrH31s/3ebE+bnxHESFea+5qaSo3C7UGnVUkN JGvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uUlcTDK4XPU+iizrpIkJOrRHPABQ0RGWVp54/0NzJKk=; b=doMn2xOtMpsNsGRn4ELyXuidg4T4+18Kq0f1ZahluhPZXB/KCO6moguPCE64HK6dKq JNKYe7RRA39JcAlKq6nkKJRyXc8LjxIQUPLomQVXGArgE3XLXnKZXV6c0cTb2zgos3gL qfeNUOJDwpYSbQn2ZorBY7EJPuozXtbp+ymcUw7PfvUKwZtZ0TDv1TLYh86SRqdrTsvH Fye4NYikzCtWt4qrQCOxwxOHlHV79oPBXMQK8vdHx65g1M0emp7dwsLceYVUw2ey8Mg1 5KwOWHJuD4Q6NC4QtUnoWNsuJ/xWNfvtdrDlQXy9PZ0R4OLIVexwFNsh1Vy0+unqhl36 wL5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NgbjHiya; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t5si2822852plb.138.2021.10.17.07.33.54; Sun, 17 Oct 2021 07:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NgbjHiya; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237810AbhJORdv (ORCPT + 99 others); Fri, 15 Oct 2021 13:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235261AbhJORds (ORCPT ); Fri, 15 Oct 2021 13:33:48 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26BA6C061570; Fri, 15 Oct 2021 10:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uUlcTDK4XPU+iizrpIkJOrRHPABQ0RGWVp54/0NzJKk=; b=NgbjHiyaDO4zvgJzUVTEBWtoLd MxI2VAOvKixcFxmUR9Q78HrsKsnDB2feafuRocMJlVJca+AtlN2zmCFgfeF73UGfFhvY36HHdpv+c p1/8xX3sPuI7ChCJO1bKSWXZ0nrU7NiH+lVFMaTQ4HoVgLCIiqAeSMRNDIBy98+Bb908T9VbJT4zJ VTKMweCE7STFbx6SekAkMWFyslODFau0/CJz9pXg1M5OcXwK3M7uRgMch3FDaVwHYbHdPwaAjj2ZP IHpqOF83NJkwFyvrlkb19rWiAs7nWP3NODSCnSsYVSn/uKy59n0CpkMd0lNUHlfse0jti5fbGEnEE EJKPi/Fg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbR3L-008L4Y-Lv; Fri, 15 Oct 2021 17:31:31 +0000 Date: Fri, 15 Oct 2021 10:31:31 -0700 From: Luis Chamberlain To: Ming Lei Cc: tj@kernel.org, gregkh@linuxfoundation.org, akpm@linux-foundation.org, minchan@kernel.org, jeyu@kernel.org, shuah@kernel.org, bvanassche@acm.org, dan.j.williams@intel.com, joe@perches.com, tglx@linutronix.de, keescook@chromium.org, rostedt@goodmis.org, linux-spdx@vger.kernel.org, linux-doc@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 11/12] zram: fix crashes with cpu hotplug multistate Message-ID: References: <20210927163805.808907-1-mcgrof@kernel.org> <20210927163805.808907-12-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 04:36:11PM +0800, Ming Lei wrote: > On Thu, Oct 14, 2021 at 05:22:40PM -0700, Luis Chamberlain wrote: > > On Fri, Oct 15, 2021 at 07:52:04AM +0800, Ming Lei wrote: > ... > > > > > > We need to understand the exact reason why there is still cpuhp node > > > left, can you share us the exact steps for reproducing the issue? > > > Otherwise we may have to trace and narrow down the reason. > > > > See my commit log for my own fix for this issue. > > OK, thanks! > > I can reproduce the issue, and the reason is that reset_store fails > zram_remove() when unloading module, then the warning is caused. > > The top 3 patches in the following tree can fix the issue: > > https://github.com/ming1/linux/commits/my_v5.15-blk-dev Thanks for trying an alternative fix! A crash stops yes, however this also ends up leaving the driver in an unrecoverable state after a few tries. Ie, you CTRL-C the scripts and try again over and over again and the driver ends up in a situation where it just says: zram: Can't change algorithm for initialized device And the zram module can't be removed at that point. Luis