From: Christoph Hellwig Date: Wed, 30 Jul 2014 11:18:48 +0000 (-0400) Subject: direct-io: fix AIO regression X-Git-Tag: cleanup-for-v3.18~159^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af436472772d474acfad724ce789e003d1ca41c3;p=pandora-kernel.git direct-io: fix AIO regression The direct-io.c rewrite to use the iov_iter infrastructure stopped updating the size field in struct dio_submit, and thus rendered the check for allowing asynchronous completions to always return false. Fix this by comparing it to the count of bytes in the iov_iter instead. Signed-off-by: Christoph Hellwig Reported-by: Tim Chen Tested-by: Tim Chen --- Reading git-diff-tree failed