Commit 870b38b0 authored by Dave Jones's avatar Dave Jones

[PATCH] faster kiobuf init.

Originally from Intel, has been around various vendor trees for a while.
Aparently worth a noticable speed up in some applications.
parent 8ae584e0
......@@ -28,11 +28,14 @@ int end_kio_request(struct kiobuf *kiobuf, int uptodate)
static void kiobuf_init(struct kiobuf *iobuf)
{
memset(iobuf, 0, sizeof(*iobuf));
init_waitqueue_head(&iobuf->wait_queue);
atomic_set(&iobuf->io_count, 0);
iobuf->array_len = KIO_STATIC_PAGES;
iobuf->maplist = iobuf->map_array;
iobuf->nr_pages = 0;
iobuf->locked = 0;
iobuf->io_count.counter = 0;
iobuf->end_io = NULL;
}
int alloc_kiovec(int nr, struct kiobuf **bufp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment