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

From: Andi Kleen
Date: Thu Jul 03 2014 - 16:00:00 EST


Thomas Schoebel-Theuer <tst@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/