* OPEC meeting in Vienna on Friday looms over market
* OPEC to discuss potential extension of production cuts
* U.S. crude production has reached pre-Harvey storm levels (Updates throughout, changes dateline, previous SINGAPORE)
LONDON, Sept 21 (Reuters) - Oil prices steadied on Thursday, holding most of their recent gains before a meeting of oil producers that could extend production limits aimed at clearing a glut that has depressed the market for more than three years.
Ministers from the Organization of the Petroleum Exporting Countries, Russia and other producers meet in Vienna on Friday and are due to consider extending output cuts that began in January.
OPEC and its allies have agreed to reduce output by about 1.8 million barrels per day (bpd) until March 2018 in an attempt to empty inventories. Many analysts now expect them to extend the deal, possibly to the end of next year.
"An extension of the agreement or an increase in the cuts may be announced," said Jeffrey Halley of futures brokerage OANDA.
Brent crude oil was down 5 cents at $56.24 a barrel by 0820 GMT. U.S. light crude was 15 cents lower at $50.54.
Both contracts have risen more than 15 percent over the last three months as global oil supply has tightened.
OPEC's efforts have been hampered by higher production in some other parts of the world, including the United States, where shale oil production is reaching record highs.
Recent hurricanes in the Gulf of Mexico have also pushed up crude inventories in some parts of the United States as U.S. refineries have been shut by flooding.
U.S. commercial crude oil stocks <C-STK-T-EIA> rose for a third straight week, building by 4.6 million barrels in the week ending Sept. 15 to 472.83 million barrels.
U.S. oil production has reached 9.51 million bpd, up from 8.78 million bpd directly after Hurricane Harvey hit the U.S. Gulf Coast. <C-OUT-T-EIA>
U.S. crude received some support from a strong draw in gasoline stocks by 2.1 million barrels to 216.19 million barrels, traders said.
The structure of oil futures prices suggests OPEC production cuts are beginning to have an impact, analysts say.
Front-month Brent futures have risen sharply in recent months, much more than forward prices. This has changed the Brent price curve, moving it into what traders call "backwardation," when prices for immediate delivery are higher than prices for later barrels.
The shift is seen as an indicator of a tightening market as it encourages the immediate sale of oil rather than holding it in storage.
(Additional reporting by Henning Gloystein in Singapore; Editing by Edmund Blair)