The talk explains how patching methods lead to a local-global principle for homogeneous spaces under rational linear algebraic groups. As a consequence, we obtain a new proof of the recent result of Parimala and Suresh on quadratic forms, stating that the u-invariant of a nondyadic p-adic function field is 8. Other applications include results about central simple algebras.