[PATCH] elevator: move the backmerging logic into the elevator core