NEW YORK (Reuters) - Crude prices were slightly lower after a volatile session on Thursday, as the restart of two key Libyan oilfields and concerns about lackluster gasoline demand fed concern over whether major oil producers can alleviate the glut of global inventories.

FILE PHOTO: A Total petrol station is seen in Libreville, Gabon, February 2, 2017. Picture taken February 2, 2017 REUTERS/Mike Hutchings/File Photo

Libya’s Sharara and El Feel oilfields, which can produce nearly 400,000 barrels per day (bpd), returned to production after protests blocking pipelines ended.

U.S. gasoline futures led the energy complex lower in choppy trading, at one point hitting its lowest level seasonally in eight years after data on Wednesday showed inventories rose by the most in nearly three months.

Brent crude LCOc1 settled down 14 cents a barrel at $51.68. U.S. light crude CLc1 was down 37 cents to $49.25 a barrel.

“Gasoline is kind of keeping crude from going up very much,” said James Williams, president of energy consultant WTRG Economics in London, Arkansas.

U.S. gasoline RBc1 tumbled almost 2 percent to $1.559 a gallon.

“Gasoline is leading the way lower with ample stocks, lower demand compared to last year, and an increase in gas(oline) stocks on the east coast,” said Anthony Headrick of CHS Hedging.

“For the last four weeks gas demand is down 1.8 percent from last year.”

Global crude oil inventories have remained high, in part because of increased production from the United States. At 9.27 million bpd it is at its highest since August 2015, according to government data.

Amid concerns about the persistent global oil glut the Organization of the Petroleum Exporting Countries and Russia are in talks to extend a six-month deal to cut 1.8 million bpd into the second half of the year.

OPEC Secretary-General Mohammad Barkindo said although the oil oversupply was declining, stocks needed to fall further, in comments that pointed to an extension in cuts.

Barkindo did not comment directly on whether the cut would be extended, but he said efforts were under way led by Saudi Energy Minister Khalid al-Falih, who is OPEC president in 2017, to get a consensus before ministers meet in Vienna on May 25.

The International Energy Agency said in its latest monthly market report that oil stocks in industrialized countries stood at around 3.06 billion barrels at the end of February, some 336 million barrels above the five-year average.