Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932243AbWIRTA7 (ORCPT ); Mon, 18 Sep 2006 15:00:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751808AbWIRTA6 (ORCPT ); Mon, 18 Sep 2006 15:00:58 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:13261 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S1751799AbWIRTA4 (ORCPT ); Mon, 18 Sep 2006 15:00:56 -0400 Date: Mon, 18 Sep 2006 20:00:33 +0100 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Jeff Garzik , linux-ide , linux-scsi , Linux Kernel Mailing List , Alexis Bruemmer , Mike Anderson Subject: Re: [PATCH v3] libsas: move ATA bits into a separate module Message-ID: <20060918190033.GD17670@infradead.org> Mail-Followup-To: Christoph Hellwig , "Darrick J. Wong" , Jeff Garzik , linux-ide , linux-scsi , Linux Kernel Mailing List , Alexis Bruemmer , Mike Anderson References: <4508A0A2.2080605@us.ibm.com> <450971D3.2040405@garzik.org> <4509DA77.7000508@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4509DA77.7000508@us.ibm.com> User-Agent: Mutt/1.4.2.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by pentafluge.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1188 Lines: 25 On Thu, Sep 14, 2006 at 03:40:55PM -0700, Darrick J. Wong wrote: > Jeff Garzik wrote: > > > I disagree completely with this approach. > > > > You don't need a table of hooks for the case where libata is disabled in > > .config. Thus, it's only useful for the case where libsas is loaded as > > a module, but libata is not. > > Indeed, I misunderstood what James Bottomley wanted, so I reworked the > patch. It has the same functionality as before, but this module uses > the module loader/symbol resolver for all the functions in libata, and > allows libsas to (optionally) call into sas_ata with weak references by > pushing a table of the necessary function pointers into libsas at > sas_ata load time. Thus, libsas doesn't need to load libata/sas_ata > unless it actually finds a SATA device. NACK again. Week references are bad. Please change it back to normal hard references so that it works like everything else in the kernel. - 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/