PR submitted: https://github.com/MariaDB/server/pull/1535 (based on 10.2)
Local mtr testing done found to be working (except the known failured re-check it with the http://buildbot.askmonty.org/buildbot/grid?branch=10.2)
Output
-----------
without patch
=============
OS WAIT ARRAY INFO: reservation count 1905259
OS WAIT ARRAY INFO: signal count 424327
RW-shared spins 0, rounds 18226, OS waits 2732
RW-excl spins 0, rounds 11096957, OS waits 178606
RW-sx spins 3204, rounds 83720, OS waits 1918
Spin rounds per wait: 18226.00 RW-shared, 11096957.00 RW-excl, 26.13 RW-sx
with patch
==========
OS WAIT ARRAY INFO: reservation count 1969248
OS WAIT ARRAY INFO: signal count 445870
RW-shared spins 13515, rounds 121096, OS waits 2880
RW-excl spins 1363552, rounds 10484920, OS waits 181852
RW-sx spins 3303, rounds 87907, OS waits 1994
Spin rounds per wait: 8.96 RW-shared, 7.69 RW-excl, 26.61 RW-sx
- Numbers are not directly comparable but just for references
Patch for it could be found here.
https://github.com/mysqlonarm/server/commit/6b21ce184ecc24a03a552eb9b0aad89fc1995be4