]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Linux: cleanup aio support
authorMarc Dionne <marc.c.dionne@gmail.com>
Fri, 22 Apr 2011 19:23:27 +0000 (15:23 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 3 Apr 2013 12:43:54 +0000 (05:43 -0700)
commit1d38a73cb31e44fdbd71f8d90635514936ec1b28
treeefa3f866a07bb13b527c86fffdd9735e37e5516a
parent70a77f25e449a1772fb3a17ec5bc1b3ecda13cd1
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

Reviewed-on: http://gerrit.openafs.org/4563
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit a8c46e5010c0b4e41ad66458b8723e32f99b427d)

Change-Id: I3c20064cc911aabfce576178c22fcdc1a99b8125
Reviewed-on: http://gerrit.openafs.org/9492
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/LINUX/osi_vnodeops.c
src/afs/afs_trace.et