[PATCH] SG IO engine: reduce allocations and memory leaks
authorJens Axboe <jens.axboe@oracle.com>
Thu, 8 Feb 2007 19:59:31 +0000 (20:59 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 8 Feb 2007 19:59:31 +0000 (20:59 +0100)
commitdc0deca2b89bea896e8eb8133961cec68c4ba8b9
tree9999d351f9fa2e02f994cf820ec0f5c4439c99cc
parent6ab9e267d0a48de95c86875ba93fe17203163bb0
[PATCH] SG IO engine: reduce allocations and memory leaks

We currently do 3 allocations and frees in the queued getevents
handler, we can easily reduce that to 0 by statically allocating
the buffers at init time.

The cleanup handler didn't free any of the currently allocated
structures, fix that up.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/sg.c