Nissan is recalling more than 2.1m cars globally due to a faulty engine control system.