aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2010-04-19 13:34:11 +0100
committerKevin Wolf <kwolf@redhat.com>2010-05-03 10:07:31 +0200
commit4899d10d142e97eea8f64141a3507b2ee1a64f52 (patch)
tree33961747d5ae2927bd04120140f1956f0a022c66 /block.c
parent508e0893686794be55cfaa336fea584b16a471d9 (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>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions