Re: [PATCH 30/50] mars: add new file drivers/block/mars/xio_bricks/xio_aio.c

Andi Kleen
2014-07-03T19:59:57Z

Thomas Schoebel-Theuer <tst@schoebel-theuer.de> writes:
> +
> +/************************ mmu faking (provisionary) ***********************/
> +
> +/* Kludge: our kernel threads will have no mm context, but need one
> + * for stuff like ioctx_alloc() / aio_setup_ring() etc
> + * which expect userspace resources.
> + * We fake one.
> + * TODO: factor out the userspace stuff from AIO such that
> + * this fake is no longer necessary.
> + * Even better: replace do_mmap() in AIO stuff by something
> + * more friendly to kernelspace apps.
> + */

That obviously has to be done before taking this patchkit any further.

AFAIK the kernel already has totally usable internal AIO interfaces.

-Andi

--
ak@linux.intel.com -- Speaking for myself only