prune_io_piece_log() also needs to take list into account