Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2883937lqp; Mon, 25 Mar 2024 11:57:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDkB3zqPRVrin89gW3xe/D8lyUvIMnTGdw7U9oG+n2fb4AJWKSIMLB4eKAUZJLe+nuIHwdvXbyPM6lSKZV8uefsqWSleRlwxwCP/J0Rg== X-Google-Smtp-Source: AGHT+IGZoZwzjuhg+uxz+Mhqt/i2xps5fV0oZZS/COuLhwpp/L2EjnT5e/pJbPVlSYn43KuQW9Zr X-Received: by 2002:a17:90a:a083:b0:29c:5b18:2983 with SMTP id r3-20020a17090aa08300b0029c5b182983mr5528020pjp.16.1711393049919; Mon, 25 Mar 2024 11:57:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711393049; cv=pass; d=google.com; s=arc-20160816; b=HmxLp2EXz675u5xQOGL4o9FOP89Rxc1n/uezu7ljNJboFfSOTEIc2EIwYCQ/kw7Wbf fh164RMQAuACJr78Fvgal9k2HoUoyasi2BFBu0fABq81DNahl2l+WR+YZeHP39h2+6Z7 VLawQ9y27CUnmiSpomkikir5Nfrk5jDH6h11je6QmbhCuLamOg+ZshO3IllHLxYQf/W2 RYSy3uRs0EB6ATa54sClSk5GFNAA3gYdzhFiasJq8XFBCd8fkIzCU8k1UCq9jBqbIaIx 1QTChbJq7ejPbZZmE+0d7dcjEpV4Wq6LaofVx2r0BaQy69Mrd0+WPvF7m3Ydfqf+e6KI bcQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YhGJKP64FbfDdfouu2jlSCxVSnmjK1S5r0xts52C8TU=; fh=NOh2pqQSOdGnci+2I5QNZYbrta9/RXb7EEXFRoyeq4w=; b=xX/dJF1vbzFxO5GsXbzAOzu6RtP/C6balv0vRKhpskA6WY0Pm4mMh+Osvio4VUI/3k NOsTZPc09jcDGaBi6q5432JHbGtzczxbxz87PyzcQyA2sYFvhG07UvWwmEPLhJEzpkbN u88XIpDDjVbLfBuR9HimwrsDpufhDP9Z52IZ/F2sTfmokz4EFztG9dL+hxTm5u0V1PHI sAmVv8NPMb+IvXxQ+JgWw0TqxccDARKtQhQwVeetjQIbjWeU6bepimVs5rhAuw6lnauy hFrpZs6BArTa+yimPuF8mRDfWjFxBMYGcZpcb1akLbJgtfG4FMWuS9soWEjgEAT8cm1w U1+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HKt979+O; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-117728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 91-20020a17090a09e400b002a03864ce2bsi7622486pjo.171.2024.03.25.11.57.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HKt979+O; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-117728-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 72F4F30113C for ; Mon, 25 Mar 2024 18:48:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1DC84C618; Mon, 25 Mar 2024 18:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HKt979+O" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA3C4804; Mon, 25 Mar 2024 18:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391918; cv=none; b=DH6QtHq7UYtu2yZlHMcOfdqmGHIgTx9bdbYfn0hwlZwfrdUhIgub0Gi2s6SoeijV1UI6dqm2vR/2AD2r05ab1tzmBtEqTcz1LT4qn/M3HZlSETJFKED3WMXt7XhkrA18d2ZoLwxCm5XnhyoRnabG2o1KixN6LfuM3hD5MdzKnsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391918; c=relaxed/simple; bh=blLcvYAqaiFz1G8fZPDqiwWnJvL9Uqm3A7A++8T3s4E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=K2dgaw+1h9tafnTpQueVIaWPL8fRwkAR7njUqQW089NBxazajSrUTqwtUCqWRYzt/gzMytMAHkCtMctH6UlTAjkYwSEQmBlJySeh4Pnfwm7LQCvqSjb2B3hvKhIQRuRKzqLQyUcfseTE8+nHegh8lfI+bKb8lJu4j5uH0Kj9d7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HKt979+O; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7F9DC433C7; Mon, 25 Mar 2024 18:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711391917; bh=blLcvYAqaiFz1G8fZPDqiwWnJvL9Uqm3A7A++8T3s4E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HKt979+ORk1GhjUQtnxxmtJbwUrwTflAts8wpAM/N32EZjdQOWQv6hEg4o1jT3KHH TxDtUSOEippLs58N41KVnI1fxTM8cx5ilGEDvgaO6kKL/clCZ29Lo1eiS+BSSwqAZE BEYre//S80GNmVbAidCHyDdkaWKRij86uLr2LLLA= Date: Mon, 25 Mar 2024 19:38:34 +0100 From: Greg Kroah-Hartman To: Herve Codina Cc: "Rafael J. Wysocki" , Rob Herring , Frank Rowand , Saravana Kannan , Lizhi Hou , Max Zhen , Sonal Santan , Stefano Stabellini , Jonathan Cameron , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Steen Hegelund , Luca Ceresoli , Nuno Sa , Thomas Petazzoni , stable@vger.kernel.org Subject: Re: [PATCH v6 1/2] driver core: Introduce device_link_wait_removal() Message-ID: <2024032554-tipoff-extrude-a631@gregkh> References: <20240325152140.198219-1-herve.codina@bootlin.com> <20240325152140.198219-2-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240325152140.198219-2-herve.codina@bootlin.com> On Mon, Mar 25, 2024 at 04:21:25PM +0100, Herve Codina wrote: > The commit 80dd33cf72d1 ("drivers: base: Fix device link removal") > introduces a workqueue to release the consumer and supplier devices used > in the devlink. > In the job queued, devices are release and in turn, when all the > references to these devices are dropped, the release function of the > device itself is called. > > Nothing is present to provide some synchronisation with this workqueue > in order to ensure that all ongoing releasing operations are done and > so, some other operations can be started safely. > > For instance, in the following sequence: > 1) of_platform_depopulate() > 2) of_overlay_remove() So this is only an issue for overlays? Why has no one noticed this in the years since 80dd33cf72d1 was added? Why is this an issue now suddenly? thanks, greg k-h