Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp157917pxb; Mon, 18 Oct 2021 23:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPZeicoqRpKAqxBXpAdF/ykKXbX6f1Pvv56HnfcloUxhqyXrqzDzbIgdetGU/3e1y4C2z+ X-Received: by 2002:a17:907:c27:: with SMTP id ga39mr35392175ejc.217.1634624764545; Mon, 18 Oct 2021 23:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634624764; cv=none; d=google.com; s=arc-20160816; b=LCBbn8SNWkYQjid2q7+j6sUVfDoXw0eiwLkqi+mJTEHafeKBC9nBSgUFh1Mr1JReJx 1ydHsYHHqEw3FQnNqB7WWq9vuX+gPtjN5EVTQ23ZXyAjDbobffst/QNZQULHX3ybAjpR GXiKpc+akwoCbxIDptOS9T2GwxPhjj7wwbvxB4/gcksvnRR4bOjySBpeydVkwDwGV3KU WrhEOMbUWY825I9BQ0saVQIAtr9PcN2xLGqhewI0BzYhAOB1vsBqTV+K0PaURyf+DGkS yS+xDB5vXdzesLwmgFGq8soI5x4Mlv+mTwDs/xbZadH0DoLAO1esAbGfE1WEgBs3egN6 63Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=aNvJPt85vZf9bBMJjbgwMuKxAMmcbsHIJPwZz/3xngo=; b=z9UTxmDDTN6yxw7YWqUf+8FuFpkQ9jj8t6oGOAkmxqkAhfqnmfBOvhMXzGjGgX/k5N rWbMpKHOe7h9JdmyZSFBbzpbIZVS0/5v0//PiD3OWVTOsncTQwZLwUeV6HWx2WK7qIM3 jc6+llwFxYi9hdswcoM/xqN+0+pTMgwGu2iVAPkgeJsQEWckK+1FjKzXNtR3uZil9+fB xsZA2Pgf0T1EWpwjmS9uF0ZpYiTwMVMJf9UD9tkcqhtGAwPJLbjZGCIKDOZ8iA91rZC/ A0ZZX4NU9y6jrq+flwjXGxTeK5NikuLqe13VolkuMxdxVA6OP+HsBrk7P2nEpfz7fZGE /TVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=aPPUZQip; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si24054033ejm.506.2021.10.18.23.25.40; Mon, 18 Oct 2021 23:26:04 -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=@suse.cz header.s=susede2_rsa header.b=aPPUZQip; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234205AbhJSG0I (ORCPT + 99 others); Tue, 19 Oct 2021 02:26:08 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:50458 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234165AbhJSG0H (ORCPT ); Tue, 19 Oct 2021 02:26:07 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 346CE2197E; Tue, 19 Oct 2021 06:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1634624633; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aNvJPt85vZf9bBMJjbgwMuKxAMmcbsHIJPwZz/3xngo=; b=aPPUZQip1FXzonJxM4wqd/690HrZk6fz9rhHm/1JCFBw9ALlZDpceFtf6flMY3j6oMRMFe AQmevTkq51HUk5WPl3N4P1eN9xv890mbZxJ7GfHV8xreOSPvAbt4ZkskV7eS7JuJeAvANa 9uoyyw60aVq6hbOMcli3eofF+oZayMg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1634624633; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aNvJPt85vZf9bBMJjbgwMuKxAMmcbsHIJPwZz/3xngo=; b=GijXbiZXw/n+u9uG38fm5BwLSEeX5PBkSlrFwGvVSFdmfffvdMVEtRW9XLwkcJp1P8EfmE 6ukLpP3n3DF7j3Dw== Received: from pobox.suse.cz (pobox.suse.cz [10.100.2.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0341FA3B8A; Tue, 19 Oct 2021 06:23:52 +0000 (UTC) Date: Tue, 19 Oct 2021 08:23:51 +0200 (CEST) From: Miroslav Benes To: Ming Lei cc: Luis Chamberlain , 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 In-Reply-To: Message-ID: References: <20210927163805.808907-12-mcgrof@kernel.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > By you only addressing the deadlock as a requirement on approach a) you are > > forgetting that there *may* already be present drivers which *do* implement > > such patterns in the kernel. I worked on addressing the deadlock because > > I was informed livepatching *did* have that issue as well and so very > > likely a generic solution to the deadlock could be beneficial to other > > random drivers. > > In-tree zram doesn't have such deadlock, if livepatching has such AA deadlock, > just fixed it, and seems it has been fixed by 3ec24776bfd0. I would not call it a fix. It is a kind of ugly workaround because the generic infrastructure lacked (lacks) the proper support in my opinion. Luis is trying to fix that. Just my two cents. Miroslav