Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp771985pxb; Tue, 19 Oct 2021 12:40:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywLwiTYGwlfIR2p7YeUJqdn/9EzsktShtzcQHJH1/3N43NAaZp5sNm8yBcQ1fMnI2z//DR X-Received: by 2002:a17:90a:17e1:: with SMTP id q88mr1953608pja.99.1634672408231; Tue, 19 Oct 2021 12:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634672408; cv=none; d=google.com; s=arc-20160816; b=Ds+pGdlaxf/q9f+V1biFQPfQfFbMA07RPulcAKn71Riqfd+vauyg7ARmBpsvMdvJX8 oRDcLMWYI8FR4WN2eVQFAzBMSg0UATMqF/sxfXkC+Vd04yfBFqt/A8bw8JsAc5+306c7 WfWnL1wkf1Ge4nPDAAsI2KdLAim439kM8GmrpsV+kPr5KxKjpAQJpwqi+Y6reIVcc2Ho F7kmY7YXFONNgMsT5XcKzNvcZCSnq3NInzPBKI9ez3Xx5v/lY4gzxwEzq2vF7Hl/FeIm syn73++1GFp5IMzojaXkRkWYDznynngkQx6m7zDnbF3lIFkDNXbCUbMmZ7cJDjwwUw/n oBSw== 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=zY/TOEsZiQ3A5NcBB8ThTVV+O2F16AgeBhmjTIEWu7w=; b=RdSrESb2YnEwLuOXwP3oWBR5ScowKNH3n9uDKHZPvzaeDhVsM0IkqjbiRK19zT2t9T Kh29JZKLPrX6z9en1hhJezpZE39QLROY6GaFAcNfeKkMphnfjsFgP+Tydx0im3XcmGBp QjpZAWZ4ruwSA1bXb2SQKm395lfV0yWLeIHloYIi3jTt4LmJZ1gPFLg17+kw+EdWAk9N rP0ikUAl5VlOMT0uN1okZr2FWCUkzFuejyH9Kbcfh6eE+9Zds7KIRFZBXEqstmxJgMPZ ky8C5gGK3zrB76fEjwV4X2zxjrq+RnYtEHlcr4vAH0u8K6p5U4d6wPZ0gMI+HocNIuFi 4naQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="ZStJ/DXq"; 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 q17si47352pfs.309.2021.10.19.12.39.55; Tue, 19 Oct 2021 12:40:08 -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="ZStJ/DXq"; 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 S234400AbhJSTlI (ORCPT + 99 others); Tue, 19 Oct 2021 15:41:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230432AbhJSTlH (ORCPT ); Tue, 19 Oct 2021 15:41:07 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 980F3C06161C; Tue, 19 Oct 2021 12:38:54 -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=zY/TOEsZiQ3A5NcBB8ThTVV+O2F16AgeBhmjTIEWu7w=; b=ZStJ/DXqq1wAvyAXrcCXgyZYTL AbzgYczpU5nQMNid+f6J4ibhGfIyJqjlykgL/v5dQDL+HLL2ZsC8YzEuzI0LfocO782ZVzleec++r nemnPop2nMpQedimhX/v2i4cCuXgnPpeK6heH5Ap9yMKk4nh3OaeiJGvI3eUU4XHcMl0vjslhWOe5 P9NcT7KFmWZwL11f5OGcZoJ2cX/dR6taK+9lafK+TBHdeohoKfUbhikMaztwxtLSQuiYMrZo2FQTt plVx+iPPZEbaRCRqP6vOSOGjS8ns1X3V2Eebf/S6yYCzwJrYDx99KaEN9zNPeJnEs5Db9Uct4ni5B qMqkvecA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcuwc-002XBh-TJ; Tue, 19 Oct 2021 19:38:43 +0000 Date: Tue, 19 Oct 2021 12:38:42 -0700 From: Luis Chamberlain To: Ming Lei Cc: Benjamin Herrenschmidt , Paul Mackerras , 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: 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 Wed, Oct 20, 2021 at 12:39:22AM +0800, Ming Lei wrote: > On Tue, Oct 19, 2021 at 08:50:24AM -0700, Luis Chamberlain wrote: > > So do you want to take the position: > > > > Hey driver authors: you cannot use any shared lock on module removal and > > on sysfs ops? > > IMO, yes, in your patch of 'zram: fix crashes with cpu hotplug multistate', > when you added mutex_lock(zram_index_mutex) to disksize_store() and > other attribute show() or store() method. You have added new deadlock > between hot_remove_store() and disksize_store() & others, which can't be > addressed by your approach of holding module refcnt. > > So far not see ltp tests covers hot add/remove interface yet. Care to show what commands to use to cause this deadlock with my patches? Luis