[PATCH 002 of 2] Make sure readv stops reading when it hits end-of-file.

2007-06-06 Thread NeilBrown
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

[PATCH 002 of 2] Make sure readv stops reading when it hits end-of-file.

2007-06-06 Thread NeilBrown
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