WL#7306: Improve MDL performance and scalability by implementing lock-free lock acquisition for DML

Affects: Server-5.7   —   Status: Complete

Since DML statements are most common for normal workload/benchmarks it makes
sense to optimize MDL subsystem for such statements. One of possible
optimizations is making acquisition/release of locks for DML statement (S, SH,
SR and SW locks) lock-free, e.g. by replacing complex construction involving
locking mutex, object manipulation and unlocking mutex with construction
involving CAS operator updating single object member.

Preliminary benchmarks of draft patch implementing this idea has shown good
results. In some cases performance was on par with tree built without MDL.

User Documentation
==================

http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-4.html