Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1871683ybp; Wed, 9 Oct 2019 22:05:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQqRjSSWv2nEaJMDznI8PhooNeNCRJ69/LD28Snw6Qb/3F+jJVjX4ww66BgrESfoy/MfJj X-Received: by 2002:a17:906:4d95:: with SMTP id s21mr6210160eju.175.1570683933884; Wed, 09 Oct 2019 22:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570683933; cv=none; d=google.com; s=arc-20160816; b=MTkgjGM/9R5NVTE0yHVKGsAmPq8AxxUpy5fVxQNFJ/yt/AodKHqyfOGXUROytb2Etn jqVY4j5zDixAX9IiEh9d0u27GK61XHYJewPSVhcu2klEdPevmrpqa0J5XlFLYizccP3g e0tOVigjyynRUqoBzLFTx7MGlkmSgwjgToihzRkexaBLrAJbM9eCErFTF73/Reth4RlX i5AOuywMvi5bEhj3K3mf4XZgpJKYlbykXF++CQHQWp3u/8nf9730EPugBBGnVp+Qn8Iv W8eeqgwADvlU8F/VL1eM1WYso3GSVTHSW6c+ATln5zha/miAzMwfCk5t88ok9rZD/TjL 0ALQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:cc:to:from :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=RDcgYyHGE7Ugaco0qkuIi9HynTd/fxe2Ca020N/JEPg=; b=sP/2aWr1hmUOqrYuINM3uqwtrtI0KSwiNLJU0W5rORVASv0TlyE5Bdl/b8c22voKLp /O0n8dGdxF5h0MFuriIyHU1sG7nQ5gooXDdVQlCUiUFVfzVZcEwgI/SGFI78cARflIu4 GtCkmrXBKwguofB5bHdLv6BrU0E5Z5Z/0rCM0wsL/8eFe0+WXoudg+K5xDhpqg0ejkFg yuGo3pP1NmjfHc5T4jk11xFlA0SmDKUpOvszn0ujWMdQp+TUUnTt4Z1l/cnAhhrco2Uk hkm5auLUZbUGC9ONUo49PdJAZQK3kYkQGiWwkztiOuT1UEyo9x6BVE26vdONkyaZoKuR 3YyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Zmt7MuwX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si2542769ejf.8.2019.10.09.22.05.10; Wed, 09 Oct 2019 22:05:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Zmt7MuwX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732796AbfJJFEG (ORCPT + 99 others); Thu, 10 Oct 2019 01:04:06 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45219 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732720AbfJJFEG (ORCPT ); Thu, 10 Oct 2019 01:04:06 -0400 Received: by mail-pf1-f195.google.com with SMTP id y72so3071379pfb.12 for ; Wed, 09 Oct 2019 22:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:from:to:cc:subject:user-agent:date; bh=RDcgYyHGE7Ugaco0qkuIi9HynTd/fxe2Ca020N/JEPg=; b=Zmt7MuwX3mgqOtO1SLFiulXF3/JFoK87LeyjYNh8GzlLx5Peho4Bfp083Cv/wJtq/p qnNtMYUTITHeIv/R9giQdM6XXx/g4bBwXMGW8Y7lGhTERwMu18oYccSNphKgRGHRwzvM CsD5zrNHrYDnYRquheyibQcOKC0RePR1BdPoA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:from:to:cc:subject :user-agent:date; bh=RDcgYyHGE7Ugaco0qkuIi9HynTd/fxe2Ca020N/JEPg=; b=kDnBpR0vwmLejQSdU19ebLa+GGviN2reQEqEuijJsyV83rJ2sMAS8cGdXWZccE0l4t TayjjPYLHIwM+Bi+14Rrxg9s89MN0P/XubcE1hqMYvc5Yv2eheO2ZYp/Ht1v7DjSiMDD fxrMvZlkmH4XPNUA4vUa1qLk9LwbF34MgMTuypj/kmNY++yZjoyk3Ttw0CHreDakdxgf QWYcVIvubUOboNMrfeVCGOHjsv5Lhmv8F+mvGR+8IvN7fqqknxeBlZQwBJgTIhMgJVrk 7O+9mxPTUbCVQ67h3ATEztK4MZPAWzipRAOT9CaqA7ntXAUSzRg6iRXl0UbPL2l3naSG 32lA== X-Gm-Message-State: APjAAAWAWeOHQ/M5EUVO5ipKtOfZhSkTu+j44F4RnOLMBi1ntSywrE+u lytc+C567cWXVH2R1cT8WzvUEg== X-Received: by 2002:a63:4624:: with SMTP id t36mr6066126pga.376.1570683844943; Wed, 09 Oct 2019 22:04:04 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id p68sm4911397pfp.9.2019.10.09.22.04.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 22:04:04 -0700 (PDT) Message-ID: <5d9ebbc4.1c69fb81.b45e2.25ce@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191009013345.17192-1-clew@codeaurora.org> References: <20191009013345.17192-1-clew@codeaurora.org> From: Stephen Boyd To: Chris Lew , bjorn.andersson@linaro.org, ohad@wizery.com Cc: aneela@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Lew Subject: Re: [PATCH] rpmsg: glink: Remove channel decouple from rpdev release User-Agent: alot/0.8.1 Date: Wed, 09 Oct 2019 22:04:02 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Chris Lew (2019-10-08 18:33:45) > If a channel is being rapidly restarted and the kobj release worker is > busy, there is a chance the the rpdev_release function will run after > the channel struct itself has been released. >=20 > There should not be a need to decouple the channel from rpdev in the > rpdev release since that should only happen from the channel close > commands. >=20 > Signed-off-by: Chris Lew Fixes tag? The whole thing sounds broken and probably is still racy in the face of SMP given that channel->rpdev is tested for "published" or not. Can you describe the race that you're closing more?