linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libsas: move ATA bits into a separate module
@ 2006-09-14  0:21 Darrick J. Wong
  2006-09-14 15:14 ` Jeff Garzik
  2006-09-18 18:59 ` [PATCH] " Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Darrick J. Wong @ 2006-09-14  0:21 UTC (permalink / raw)
  To: linux-scsi, Linux Kernel Mailing List; +Cc: Alexis Bruemmer, Mike Anderson

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.

The patch is a bit large, so here's where it lives:
http://sweaglesw.net/~djwong/docs/sas-ata_2.patch

Thanks for any feedback that you can provide!

--D

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-09-18 21:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH] " Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).