Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Nov 2002 04:55:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Nov 2002 04:55:40 -0500 Received: from smtpzilla1.xs4all.nl ([194.109.127.137]:22287 "EHLO smtpzilla1.xs4all.nl") by vger.kernel.org with ESMTP id ; Mon, 18 Nov 2002 04:55:39 -0500 Date: Mon, 18 Nov 2002 11:02:00 +0100 (CET) From: Roman Zippel X-X-Sender: roman@serv To: Rusty Russell cc: Doug Ledford , Linux Scsi Mailing List , Linux Kernel Mailing List , Alexander Viro , Linus Torvalds Subject: Re: Why /dev/sdc1 doesn't show up... In-Reply-To: <20021118085928.82D7F2C30D@lists.samba.org> Message-ID: References: <20021118085928.82D7F2C30D@lists.samba.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 702 Lines: 19 Hi, On Mon, 18 Nov 2002, Rusty Russell wrote: > And it *still* means you need two paths for your code: one for "I know > it's not actually "active" yet, but I'm doing init and I need to > access it anyway". So every interface gains significant complexity by > effectively implementing their own "live" flag... Rusty, you know how refcounts work? Especially the "if (atomic_dec_and_test(&obj->ref)) cleanup(obj)" part is really interesting. bye, Roman - 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/