From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A509AC433E1 for ; Thu, 30 Jul 2020 06:54:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 809A3207F5 for ; Thu, 30 Jul 2020 06:54:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596092058; bh=d2mGG9EZHjTB3Y/Qq+mlIWfyToju/xTDhzWBPh0dPi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=Sj79l92V4cWY9mJVc+/iZazM3UL3hT7OvPRjFKgWw9DPnJeEJddODDEmSeUk9bsaV TEqAtIgt8010KMXjcg4jMNzd89/0/SLZ89IeNotHrS54Wpn1w45/I81LtEkIe+gg0T d9l2fpLuKEqK7pBz9U9yJ3CmSHXhaHh9DXwzw/AY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728849AbgG3GyR (ORCPT ); Thu, 30 Jul 2020 02:54:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:45764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgG3GyQ (ORCPT ); Thu, 30 Jul 2020 02:54:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 02E1020656; Thu, 30 Jul 2020 06:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596092056; bh=d2mGG9EZHjTB3Y/Qq+mlIWfyToju/xTDhzWBPh0dPi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YNgL4iJrNhPxP84amUMEWzJvpIqTrTJPNZpqibJeVn+6nfEkqmMrF0aqAxtWBsbX5 GmiV+b5XlJJ3+nuCOcfE6kKV5h85reJQTJg8rOboAHqhjoMgbkT6AKMNN4aPqVokp7 ShP3e6+Aw7/+hl42kh12ZFMcxlMED0T1gX9AhXgk= Date: Thu, 30 Jul 2020 08:54:06 +0200 From: Greg Kroah-Hartman To: Lukas Wunner Cc: "Rafael J. Wysocki" , Dan Williams , Geert Uytterhoeven , Pantelis Antoniou , Alexander Duyck , Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH 0/3] Fix races on device removal Message-ID: <20200730065406.GB3950394@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 03:27:00PM +0200, Lukas Wunner wrote: > Prevent dynamic SPI device addition below a controller which is > being removed. To do so, set the controller's "dead" flag using > kill_device() (patch [3/3]). Why is the SPI bus allowing this to happen? Don't you have a per-bus lock that can serialize all of this? thanks, greg k-h