From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964866AbXGSJ03 (ORCPT ); Thu, 19 Jul 2007 05:26:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S937678AbXGSJ0J (ORCPT ); Thu, 19 Jul 2007 05:26:09 -0400 Received: from mtagate1.uk.ibm.com ([195.212.29.134]:52001 "EHLO mtagate1.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937474AbXGSJ0F (ORCPT ); Thu, 19 Jul 2007 05:26:05 -0400 Date: Thu, 19 Jul 2007 11:26:02 +0200 From: Cornelia Huck To: Geert Uytterhoeven Cc: Andrew Morton , Andy Whitcroft , Jens Axboe , "James E.J. Bottomley" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Alessandro Rubini , linuxppc-dev@ozlabs.org, Paul Mackerras , Jens Axboe Subject: Re: [patch 1/3] ps3: Disk Storage Driver Message-ID: <20070719112602.5e3cb21a@gondolin.boeblingen.de.ibm.com> In-Reply-To: References: <20070716161539.075822000@pademelon.sonytel.be> <20070716162206.392129000@pademelon.sonytel.be> <20070718163637.3f0e0164.akpm@linux-foundation.org> Organization: IBM Deutschland Entwicklung GmbH X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i486-pc-linux-gnu) X-Legal: IBM Deutschland Entwicklung GmbH Vorsitzender des Aufsichtsrats: Johann Weihen =?ISO-8859-15?Q?Gesch=E4ftsf=FChrung:?= Herbert Kircher Sitz der Gesellschaft: =?ISO-8859-15?Q?B=F6blingen?= Registergericht: Amtsgericht Stuttgart, HRB 243294 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Jul 2007 10:57:53 +0200 (CEST), Geert Uytterhoeven wrote: > Were .probe()/.remove() made concurrent again? I thought that idea was dropped > because it caused too many problems? Well, for a given device, ->probe()/->remove() are locked by dev->sem, so that there cannot be two probes/removes for the same device at the same time. However, if you have multiple hotplug events pending at the same time, it depends on your bus whether it does some serialization or whether it allows multiple probes/removes running for different devices. (Initial probing of a bus and probing of all devices with a new driver is done serialized again, I think that's what you're referring to.)