This should be inside of the above loop that keeps waiting on mds_lock.