Except as otherwise provided in subsection (b):
If a derivative action is successful in whole or in part, the court may award the plaintiff reasonable expenses, including reasonable attorney's fees and costs, from the recovery of the limited partnership.
A derivative action on behalf of a limited partnership may not be voluntarily dismissed or settled without the court's approval.