[PATCH] Add support for read/write mixed io