block: Fix io_context leak after clone with CLONE_IO
[safe/jmp/linux-2.6] / block / blk-ioc.c
index d4ed600..dcd0412 100644 (file)
@@ -80,8 +80,8 @@ void exit_io_context(void)
                        ioc->aic->exit(ioc->aic);
                cfq_exit(ioc);
 
-               put_io_context(ioc);
        }
+       put_io_context(ioc);
 }
 
 struct io_context *alloc_io_context(gfp_t gfp_flags, int node)