Swansea boss Michael Laudrup says it is likely he will bring in a goalkeeper in January as Michel Vorm needs knee surgery.
Manager Jose Mourinho believes Ashley Cole will earn a contract extension at Chelsea.
The 22-year-old has also played for Bastia in the 2011/12 season, when he scored eight times in 30 games, and he appeared 34 times for Rennes last term.
"I am very happy to be here today at FC Lorient. I want to bounce back here with (manager) Christian Gourcuff," Diallo told www.fclweb.fr.
"I chose Lorient since it is a very good club that plays very good football and that suits me.
"I hope to repeat a season like I did at Bastia. I'm here to play and grow."
Lorient manager Christian Gourcuff added: "We are convinced that this is a great player and I hope he will find a favourable environment here to flourish, and bring us all his technical qualities."