Move ->commit() call to td_io_getevents()