]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: add host AIO support to block driver
authorJeff Dike <jdike@addtoit.com>
Sat, 3 Sep 2005 22:57:46 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:06:23 +0000 (00:06 -0700)
commit2f1238196932283b1ab7b741c873f5eb60d11f00
treed31987b15d57429bd40843c02b2283b8e2d90cb0
parent852f27b5053e4ee591b6e1abd59d0f38b978cc4a
[PATCH] uml: add host AIO support to block driver

This adds AIO support to the ubd driver.

The driver breaks a struct request into IO requests to the host, based on the
hardware segments in the request and on any COW blocks covered by the request.

The ubd IO thread is gone, since there is now an equivalent thread in the AIO
module.

There is provision for multiple outstanding requests now.  Requests aren't
retired until all pieces of it have been completed.  The AIO requests have a
shared count, which is decremented as IO operations come in until it reaches
0.  This can be possibly moved to the request struct - haven't looked at this
yet.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/drivers/Makefile
arch/um/drivers/ubd_kern.c
arch/um/include/aio.h
arch/um/os-Linux/aio.c