BOSTON – Rajon Rondo spun at the free-throw line, leaving one defender behind, and rose toward the basket. Out of the corner of one eye, he saw another Atlanta player coming to guard him; with his other eye he spied teammate Paul Pierce open in the corner.

“You have to pick your poison,” Hawks swingman Tracy McGrady said. “When he’s doing things like that, you don’t know what to do.”

Rondo returned from a one-game suspension for bumping an official and recorded his seventh playoff triple-double Friday night, leading the Celtics to a 90-84 overtime victory over the Hawks that gave Boston a 2-1 lead in the best-of-seven series.

The Celtics point guard had 17 points, 14 rebounds and 12 assists, after sitting out a game for bumping referee Marc Davis in the closing minutes of the series opener. Rondo did not have a basket in the first half of Game 3, and Celtics Coach Doc Rivers said he noticed Rondo struggling to run the offensive plays.

“Then, finally, I told him: ‘Just be a scorer. Just attack.’ ” Rivers said. “And I thought that freed him up.”

Rondo made the first two baskets of overtime, including a post-up hook shot over Jeff Teague that gave Boston the lead for good.

“I felt good about all the shots I took,” Rondo said. “My teammates told me to stay aggressive. Nights like tonight when I take a lot of shots, I finally found a way to get my team a win.”

Game 4 is Sunday night.

Ray Allen returned for Boston after missing almost a month and scored 13 points in 38 minutes. Kevin Garnett had 20 points and 13 rebounds, and Pierce had 21 points, one game after scoring 36 points with 14 rebounds to help the Celtics swipe home-court advantage with a Game 2 victory in Atlanta.

Joe Johnson scored 29 points and Teague had 23 for the Hawks. McGrady had 12 points — his highest total in a playoff game since he had 40 for Houston in 2008 — but 10 were in the first half, before he landed awkwardly on his right ankle and went to the locker room. He did not have a field goal in the second half.

“I know I’ll be sore tomorrow. I can feel it already,” he said. “It affected my shot. I had no lift. It affected my cutting. I’ll just go and get treatment tomorrow.”

The Celtics went on an 11-1 run to open a double-digit lead with 7 minutes to play in regulation, but Atlanta rallied and tied it 80-80 on Johnson’s 3-pointer with 1:23 left.

The Celtics got Rondo back from his suspension and Allen back on the court for the first time since April 10. He played just five games over the final month of the regular season because of bone spurs in his right ankle and missed the first two games of the playoffs.

The Hawks kept losing players. With top centers Al Horford and Zaza Pachulia already out, forward Josh Smith was scratched with a sprained tendon in his left knee.

“I thought we were depleted but we were still in a position where we could have won the game,” Hawks Coach Larry Drew said. “It says a lot about your team when they can step up in the playoffs short-handed and still put themselves in position to win the game. We certainly had our opportunity. We just fell short.”