On Tue, Feb 16, 2016 at 01:48:51PM +0300, Kirill Tkhai wrote: > This adds ioctl, which allows to set ring buffer tail > and to wait till aio requests are finished. > > v2: Add pseudosuper check > Signed-off-by: Kirill Tkhai <[email protected]> ... > +int ve_aio_ioctl(struct task_struct *task, unsigned int cmd, unsigned long > arg) > +{ > + struct ve_ioc_arg karg; > + struct kioctx *ioctx; > + int ret; > + > + if (task != current) > + return -EINVAL; > + > + if (copy_from_user(&karg, (void *)arg, sizeof(karg))) > + return -EFAULT; > + > + ioctx = lookup_ioctx(karg.ctx_id); > + if (!ioctx) > + return -EINVAL;;
Two ";;" but this is a nit, can be fixed on merging. Reviewed-by: Cyrill Gorcunov <[email protected]> Thank you! _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
