Re: [PATCH v2 3/3] usb: gadget: f_fs: add aio support

2014-01-17 Thread Michal Nazarewicz
On Fri, Jan 17 2014, Robert Baldyga wrote: > @@ -623,8 +644,55 @@ static void ffs_epfile_io_complete(struct usb_ep *_ep, > struct usb_request *req) > } > } > > -static ssize_t ffs_epfile_io(struct file *file, > - char __user *buf, size_t len, int read) > +static v

[PATCH v2 3/3] usb: gadget: f_fs: add aio support

2014-01-16 Thread Robert Baldyga
This patch adds asynchronous I/O support for FunctionFS endpoint files. It adds ffs_epfile_aio_write() and ffs_epfile_aio_read() functions responsible for preparing AIO operations. It also modifies ffs_epfile_io() function, adding aio handling code. Instead of extending list of parameters of this