commit | fc32a72dc19a79f7e16156784b1e76a128d41841 | [log] [tgz] |
---|---|---|
author | Jeff Cody <jcody@redhat.com> | Thu Sep 20 15:13:20 2012 -0400 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon Sep 24 15:15:11 2012 +0200 |
tree | caffb5c894f8d9ed19801b265685839496c74a56 | |
parent | e971aa12739f269d6fbfaeabdd4acaeb0f15960b [diff] |
block: move aio initialization into a helper function Move AIO initialization for raw-posix block driver into a helper function. In addition to just code motion, the aio_ctx pointer is checked for NULL, prior to calling laio_init(), to make sure laio_init() is only run once. Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>