From: Zach Brown Date: Fri, 30 Sep 2005 18:58:56 +0000 (-0700) Subject: [PATCH] aio: avoid extra aio_{read,write} call when ki_left == 0 X-Git-Tag: v2.6.14-rc3~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=353fb07e2043d2df12dddf4e2c39552d0ab9b026;p=pandora-kernel.git [PATCH] aio: avoid extra aio_{read,write} call when ki_left == 0 Recently aio_p{read,write} changed to perform retries internally rather than returning -EIOCBRETRY. This inadvertantly resulted in always calling aio_{read,write} with ki_left at 0 which would in turn immediately return 0. Harmless, but we can avoid this call by checking in the caller. Signed-off-by: Zach Brown Signed-off-by: Benjamin LaHaise Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed