[Stgt-devel] [PATCH 03/20] iser transport buf
Mon Nov 12 15:14:33 CET 2007
On Tue, 16 Oct 2007 11:18:57 -0400
Pete Wyckoff <pw at osc.edu> wrote:
> For RDMA, it is often nice to use data from a pool of pre-registered
> buffers. To do this, the transport allocates memory for a response and
> passes it down to the devices to fill. Some operations, though,
> allocate their own buffers and return that new memory instead. These
> are usually small and the allocation is just done for convenience to
> avoid length bounds checking. Copy the data into the provided transport
> buffer instead.
I killed memory allocation in scsi device code (spc, mmc, sbc, smc)
and kill all the hacky memory management code. Now LLDs allocate and
free buffer for data transfer.
scsi device code just uses buffer that iSER passes to.
TODO: add length checking to scsi device code and kill hack in
More information about the stgt