Dear Kafka Developers, I opened a KIP and also a Jira ticket related to this. Can you please take a look? It should be simple change to Kafka, but it should improve the performance a lot.
https://cwiki.apache.org/confluence/display/KAFKA/KIP-NEXT%3A+Get+rid+of+unnecessary+read+lock https://issues.apache.org/jira/browse/KAFKA-6722 -- Best Regards 吴清俊|Wade Wu