Re: [PATCH 0/5] sg_ring for scsi

David Miller
2007-12-21T00:31:18Z

From: Rusty Russell <rusty@rustcorp.com.au>
Date: Fri, 21 Dec 2007 10:13:38 +1100

> But, as demonstrated, there are real benefits of having an explicit header:
>
> 1) It removes the chain-end/explicit count ambiguity (see
> http://lkml.org/lkml/2007/10/25/209 & thread)
> 2) It allows others to manipulate sg chains, which couldn't be done before
> (eg. the ATA code which wants to append a padding element).
> 3) I can now hand you an sg ring for you to fill: sg chains can't do that.
>
> In short, sg_ring is generally useful primitive. sg chains are a clever hack
> for scsi_lib to create, and everyone else to read.

I do not refute any of this :-)