Boil spaghetti in salted water as per package instructions until al dente. Reserve a cup of pasta water before you drain the pasta
Heat a tablespoon of olive oil in a pan and add mushrooms
Saute on medium high heat till golden brown on all sides
In the same pan, add the remaining olive oil and garlic. On a low heat, cook the garlic for a few minutes till a light golden brown
On a low heat, cook the garlic for a few minutes till a light golden brown. Add chilli flakes and the reserved pasta water
Add parsley and toss well till the sauce coats the pasta