m is lifted up by pulling the other end of the rope with a constant downward force F=2mg. The acceleration of m is the same in both cases.