Add ->invalidate() IO engine ops
authorJens Axboe <axboe@fb.com>
Tue, 20 May 2014 01:57:05 +0000 (19:57 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 20 May 2014 01:57:05 +0000 (19:57 -0600)
commitd9b100fc117a963334fb71b8b662be90cd456068
tree20732d86938ad7f0aa8afe7453d8b8f2a828bfa4
parentb6b2626a39dd6ed7bc03e40e9dd1763954b32fdc
Add ->invalidate() IO engine ops

Allow IO engines to plug in their own invalidate cache handler.
This fixes an issue on rbd, where we attempt to invalidate the
cache, but fail because it's not a valid file descriptor.

Reported-by: xan.peng@gmail.com
Signed-off-by: Jens Axboe <axboe@fb.com>
engines/rbd.c
filesetup.c
ioengine.h