From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: BUG in: Driver core: convert block from raw kobjects to core devices (fwd) Date: Mon, 29 Oct 2007 11:45:21 -0500 Message-ID: <1193676321.3383.53.camel@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from hancock.steeleye.com ([71.30.118.248]:38923 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754040AbXJ2QpX (ORCPT ); Mon, 29 Oct 2007 12:45:23 -0400 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Alan Stern Cc: Kay Sievers , Hannes Reinecke , Greg KH , Jens Axboe , SCSI development list On Mon, 2007-10-29 at 12:38 -0400, Alan Stern wrote: > No, that's not what happens. The genhd's parent is the scsi_device > and > the queue's parent is the genhd. You can see this immediately from > the > directory layout in sysfs. Thus: How has this happened? The scsi_device doesn't know anything about the genhd; how can it hold a reference to it? If you grep the code, you'll see that only the ULD's (that's sd, sr, st, osst et al) know what a gendisk is. James