Free io_u related structures before killing IO engine
authorBruce Cran <BCran@fusionio.com>
Thu, 6 Dec 2012 19:32:40 +0000 (20:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Dec 2012 19:32:40 +0000 (20:32 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c

index 1b5c2eb..a71d768 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1287,8 +1287,8 @@ err:
                verify_async_exit(td);
 
        close_and_free_files(td);
-       close_ioengine(td);
        cleanup_io_u(td);
+       close_ioengine(td);
        cgroup_shutdown(td, &cgroup_mnt);
 
        if (td->o.cpumask_set) {