diff options
| author | [email protected] <[email protected]> | 2007-07-15 23:38:25 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-07-16 09:05:37 -0700 |
| commit | c44939ecb6e05aeaaf12d4e1bb046719c97e457e (patch) | |
| tree | 5bf1bc2c4c518fb89271110a0e9fbb43d6f4c413 /include/linux | |
| parent | 5ed44a401ddfc60e11c3484e86f0c8285051139a (diff) | |
NeilBrown <[email protected]>
The do_loop_readv_writev implementation of readv breaks out of the loop as
soon as a single read request didn't fill it's buffer:
if (nr != len)
break;
The generic_file_aio_read version doesn't. So if it hits EOF before the end
of the list of buffers, it will try again on the next buffer. If the file was
extended in the mean time, this will produce a bad result.
Signed-off-by: Neil Brown <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions