linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Splitting sg chain allocation support from scsi
@ 2007-11-14 11:46 Jens Axboe
  2007-11-14 11:47 ` [PATCH 1/2] SG: Move functions to lib/scatterlist.c and add sg chaining allocator helpers Jens Axboe
  2007-11-14 11:47 ` [PATCH 2/2] SG: Convert SCSI to use scatterlist helpers for sg chaining Jens Axboe
  0 siblings, 2 replies; 5+ messages in thread
From: Jens Axboe @ 2007-11-14 11:46 UTC (permalink / raw)
  To: linux-scsi

Hi,

Currently scsi_lib.c does its own sg chain allocation and freeing, as it
was proof of concept. But other drivers may want to take advantage of
that feature as well. These two patches add a lib/scatterlist.c and
moves most of the linux/scatterlist.h big include into that, and adds
helpers for allocating and initializing an sg list.

This adds a new kernel define SG_MAX_SINGLE_ALLOC that sets the boundary
for when sg_alloc_table() will return a chained list, that used to be a
scsi private thing.

The patch still needs a bit of cleaning up and documenting, but it's a
start. Boots and works here.

-- 
Jens Axboe


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

end of thread, other threads:[~2007-11-14 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14 11:46 [PATCH 0/2] Splitting sg chain allocation support from scsi Jens Axboe
2007-11-14 11:47 ` [PATCH 1/2] SG: Move functions to lib/scatterlist.c and add sg chaining allocator helpers Jens Axboe
2007-11-14 11:47 ` [PATCH 2/2] SG: Convert SCSI to use scatterlist helpers for sg chaining Jens Axboe
2007-11-14 12:29   ` Benny Halevy
2007-11-14 12:38     ` Jens Axboe

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).