From: Brian Foster Date: Thu, 30 May 2013 19:35:50 +0000 (-0400) Subject: fuse: return -EIOCBQUEUED from fuse_direct_IO() for all async requests X-Git-Tag: v3.10-rc5~30^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9ecf989cc7626e9edf8abef79f64b909542129b;p=pandora-kernel.git fuse: return -EIOCBQUEUED from fuse_direct_IO() for all async requests If request submission fails for an async request (i.e., get_user_pages() returns -ERESTARTSYS), we currently skip the -EIOCBQUEUED return and drop into wait_for_sync_kiocb() forever. Avoid this by always returning -EIOCBQUEUED for async requests. If an error occurs, the error is passed into fuse_aio_complete(), returned via aio_complete() and thus propagated to userspace via io_getevents(). Signed-off-by: Brian Foster Reviewed-by: Maxim Patlasov Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed