So far as I can tell, the aio workqueue isn't used for much these days.
We could probably get away with switching to keventd. Zach, isn't
someone working on a patch to get rid of all of the -EIOCBRETRY
infrastructure? That patch would probably make things clearer in this
It's only used by drivers/usb/gadget to implement O_DIRECT reads by
DMAing into kmalloc()ed memory and then performing the copy_to_user() in
the retry thread's task context after it has assumed the submitting
Yeah, a startling amount of fs/aio.c vanishes if we get rid of
EIOCBRETRY. I'm puttering away at it, but I'll be on holiday next week
so it'll be a while before anything emerges.