All of lore.kernel.org
 help / color / mirror / Atom feed
* [ATTEND][LSF/MM TOPIC] kernel AIO support and block loop device improvements
@ 2014-12-11 21:23 Maxim Patlasov
  2014-12-14  2:07 ` Omar Sandoval
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Patlasov @ 2014-12-11 21:23 UTC (permalink / raw)
  To: lsf-pc; +Cc: linux-fsdevel

Hello,

I would like to have a discussion about current state of kernel AIO - an 
interface that lets kernel callers submit aio iocbs without going 
through the user space syscalls. The patches implementing the feature 
were developed and sent to mailing lists many times by Zach Brown and 
Dave Kleikamp long while ago. Then, after LSF/MM 2014, Alexander Viro 
made significant progress wiring ITER_BVEC into VFS call paths. His 
efforts made adding support of kernel AIO much easier as was recently 
demonstrated by Ming Lei's patches converting loop driver to blk-mq, but 
for some reasons the feature is still out of tree. An interesting aspect 
of the problem to be discussed is blocking/nonblocking behavior of 
aio_kernel_submit: even if it blocks only in rare cases, the caller 
(e.g. loop driver) must always use a separate thread for processing - 
extra overhead that can be avoided.

Thanks,
Maxim

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ATTEND][LSF/MM TOPIC] kernel AIO support and block loop device improvements
  2014-12-11 21:23 [ATTEND][LSF/MM TOPIC] kernel AIO support and block loop device improvements Maxim Patlasov
@ 2014-12-14  2:07 ` Omar Sandoval
  0 siblings, 0 replies; 2+ messages in thread
From: Omar Sandoval @ 2014-12-14  2:07 UTC (permalink / raw)
  To: Maxim Patlasov; +Cc: lsf-pc, linux-fsdevel

On Thu, Dec 11, 2014 at 01:23:11PM -0800, Maxim Patlasov wrote:
> Hello,
> 
> I would like to have a discussion about current state of kernel AIO - an
> interface that lets kernel callers submit aio iocbs without going through
> the user space syscalls. The patches implementing the feature were developed
> and sent to mailing lists many times by Zach Brown and Dave Kleikamp long
> while ago. Then, after LSF/MM 2014, Alexander Viro made significant progress
> wiring ITER_BVEC into VFS call paths. His efforts made adding support of
> kernel AIO much easier as was recently demonstrated by Ming Lei's patches
> converting loop driver to blk-mq, but for some reasons the feature is still
> out of tree. An interesting aspect of the problem to be discussed is
> blocking/nonblocking behavior of aio_kernel_submit: even if it blocks only
> in rare cases, the caller (e.g. loop driver) must always use a separate
> thread for processing - extra overhead that can be avoided.
> 
> Thanks,
> Maxim
>
Just to chime in, there's also discussion of bringing in kernel AIO for
generic swapfile support (introduced for swap-over-NFS, in development
for BTRFS), so the feature has at least a couple of use cases already.

-- 
Omar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-14  2:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 21:23 [ATTEND][LSF/MM TOPIC] kernel AIO support and block loop device improvements Maxim Patlasov
2014-12-14  2:07 ` Omar Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.