Move I/O completed flag into CTX.