Fuel pump with control of the pump piston stroke