diff options
author | Zach Brown <zach.brown@oracle.com> | 2005-09-30 11:58:56 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-30 12:41:17 -0700 |
commit | 353fb07e2043d2df12dddf4e2c39552d0ab9b026 (patch) | |
tree | a93c6f5a88bf9c7382ccc7a08424e58ed1fec2e3 /mm | |
parent | 897f15fb587fd2772b9e7ff6ec0265057f3c3975 (diff) | |
download | linux-3.10-353fb07e2043d2df12dddf4e2c39552d0ab9b026.tar.gz linux-3.10-353fb07e2043d2df12dddf4e2c39552d0ab9b026.tar.bz2 linux-3.10-353fb07e2043d2df12dddf4e2c39552d0ab9b026.zip |
[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 <zach.brown@oracle.com>
Signed-off-by: Benjamin LaHaise <bcrl@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions