All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Alexis Bruemmer <alexisb@us.ibm.com>,
	Mike Anderson <andmike@us.ibm.com>
Subject: Re: [PATCH] libsas: move ATA bits into a separate module
Date: Mon, 18 Sep 2006 19:59:24 +0100	[thread overview]
Message-ID: <20060918185924.GC17670@infradead.org> (raw)
In-Reply-To: <4508A0A2.2080605@us.ibm.com>

On Wed, Sep 13, 2006 at 05:21:54PM -0700, Darrick J. Wong wrote:
> Hi all,
> 
> Per James Bottomley's request, I've moved all the libsas SATA support
> code into a separate module, named sas_ata.  To satisfy his further
> requirement that libsas not require libata (and vice versa), ata_sas
> maintains fixed function pointer tables to various required functions
> within libsas and libata.  Unfortunately, this means that libsas and
> libata both require sas_ata, but sas_ata is smaller than libata.
> Unloads of libata/libsas at inopportune moments are prevented by
> increasing the refcounts on both modules whenever libsas detects a SATA
> device (and decreasing it when the device goes away, of course).  If the
> module is removed from the .config, then all of hooks into libsas/libata
> should go away.
> 
> This is a rough-cut at separating out the ATA code; please let me know
> what I can improve.  At the moment, I can load and talk to SATA disks
> with the module enabled, as well as watch nothing happen if the module
> is not config'd in.

I think this while idea is flawed.  Please separate out the ATA code
so it can be compiled out whelibata isn't built in, but it defintly
shouldn't be a separate module.  We're not doing any complexity like
that in any other subsystem (we used to do for AGP but got rid of it
again because it caused lots of problems).

      parent reply	other threads:[~2006-09-18 18:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-14  0:21 [PATCH] libsas: move ATA bits into a separate module Darrick J. Wong
2006-09-14 15:14 ` Jeff Garzik
2006-09-14 22:40   ` [PATCH v3] " Darrick J. Wong
2006-09-14 22:49     ` Jeff Garzik
2006-09-18 19:00     ` Christoph Hellwig
2006-09-18 21:47       ` Jeff Garzik
2006-09-18 18:59 ` Christoph Hellwig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060918185924.GC17670@infradead.org \
    --to=hch@infradead.org \
    --cc=alexisb@us.ibm.com \
    --cc=andmike@us.ibm.com \
    --cc=djwong@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.