Damon Galgut in The Guardian:
Most writers battle with periods of being blocked; it's almost an occupational hazard. But in the writing of his last and greatest novel, A Passage to India, EM Forster got stuck for nine years. Now that is unusual. The book took him 11 years in total to complete, which means the actual physical work – setting the words down on the page – lasted two years. All the rest was hesitation. What tripped him up so badly? We may never know. There were two areas of his life, physical intimacy and writing, which Forster kept highly private. For the rest, his diaries and letters are full of self-examination, giving the impression of somebody free with his emotions. But he shared his sexual secrets with very few people, and in his journals he usually recorded such matters in a very oblique way. His writing he hardly mentions at all. At the time that he embarked on A Passage, Forster was at a curious point in his creative life. All of his other published novels were written in a flurry between 1905 and 1910. He had published some short stories too, but there are strong indications that his novelistic impulses were running dry. He had started a new one, which he called “Arctic Summer”, in 1911, but it had already stalled before he set out on his first visit to India and it would never be completed.
His motive for going to India was to see Syed Ross Masood, a young Indian man whom he'd befriended in 1906 and with whom he was deeply in love. The affection was lopsided: Forster had twice declared his feelings, but Masood was straight and couldn't reciprocate. Nevertheless, the two men were close, and when Masood completed his legal studies and returned to India, Forster followed a few months later.
More here.