commit | 4899d10d142e97eea8f64141a3507b2ee1a64f52 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Mon Apr 19 13:34:11 2010 +0100 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon May 03 10:07:31 2010 +0200 |
tree | 33961747d5ae2927bd04120140f1956f0a022c66 | |
parent | 508e0893686794be55cfaa336fea584b16a471d9 [diff] |
raw-posix: Use pread/pwrite instead of lseek+read/write This patch combines the lseek+read/write calls to use pread/pwrite instead. This will result in fewer system calls and is already used by AIO. Thanks to Jan Kiszka <jan.kiszka@siemens.com> for identifying excessive lseek and Christoph Hellwig <hch@lst.de> for confirming that this approach should work. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>