Linux: cleanup aio support
authorMarc Dionne <marc.c.dionne@gmail.com>
Fri, 22 Apr 2011 19:23:27 +0000 (15:23 -0400)
committerDerrick Brashear <shadow@dementia.org>
Tue, 26 Apr 2011 14:33:11 +0000 (07:33 -0700)
commita8c46e5010c0b4e41ad66458b8723e32f99b427d
tree4428f53f9ac3d06e1258df0ed5e8ec5fe60eb5c7
parente1414be76bed00d12030e2704dc6e7bcca04b6d1
Linux: cleanup aio support

Code that called directly into the aio operations (ex: readv/writev)
would bypass the AFS specific operations found in afs_linux_read
and afs_linux_write.

Rework the handlers:
- For newer kernels with aio, let the kernel use its default read
and write operations, and define the aio_read and aio_write operations,
with the AFS specific bits, calling into generic_file_aio_read/write.
The kernels default read/write operations are just wrappers around the
aio versions.
- For older kernels, leave things as is, pointing read and write to
afs_linux_read/write

Change-Id: I2a12c6716dc1974683c2582eb9ada5f841067dd9
Reviewed-on: http://gerrit.openafs.org/4563
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/LINUX/osi_vnodeops.c
src/afs/afs_trace.et