Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030727AbWKORWj (ORCPT ); Wed, 15 Nov 2006 12:22:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030728AbWKORWj (ORCPT ); Wed, 15 Nov 2006 12:22:39 -0500 Received: from mtagate5.de.ibm.com ([195.212.29.154]:55464 "EHLO mtagate5.de.ibm.com") by vger.kernel.org with ESMTP id S1030727AbWKORWi (ORCPT ); Wed, 15 Nov 2006 12:22:38 -0500 Date: Wed, 15 Nov 2006 18:23:11 +0100 From: Cornelia Huck To: "Dmitry Torokhov" Cc: "Kay Sievers" , "Greg KH" , linux-kernel , "Andrew Morton" , "Martin Schwidefsky" Subject: Re: [Patch -mm 2/5] driver core: Introduce device_move(): move a device to a new parent. Message-ID: <20061115182311.70821c97@gondolin.boeblingen.de.ibm.com> In-Reply-To: References: <20061114113208.74ec12c4@gondolin.boeblingen.de.ibm.com> <20061115065052.GC23810@kroah.com> <20061115082856.195ca0ab@gondolin.boeblingen.de.ibm.com> <3ae72650611150044y8e0b57k681c478dca5c6cbf@mail.gmail.com> <20061115102409.6e6e5dc0@gondolin.boeblingen.de.ibm.com> <1163583119.4244.6.camel@pim.off.vrfy.org> <20061115111136.3542aca3@gondolin.boeblingen.de.ibm.com> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) 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 Content-Length: 1101 Lines: 25 On Wed, 15 Nov 2006 11:44:36 -0500, "Dmitry Torokhov" wrote: > Why do we need to have them at all? Devices should not "move" in the > trees - it it moves we should just treat them as old devices going > away and new devices appearing... But unregistering and re-registering is exactly what we want to avoid in our case. We have still the same ccw device, it's only now operational via another subchannel (i. e. the topology changed, but not the device). If we unregistered the device, we would also kill the associated block device(s), and if it had been mounted, we go boom. (This is what currently happens without this patchset, and it may be triggered by a short hardware outage we'd otherwise survive without a problem.) -- Cornelia Huck Linux for zSeries Developer Tel.: +49-7031-16-4837, Mail: cornelia.huck@de.ibm.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/