On 7/16/21 9:26 AM, Asutosh Das (asd) wrote:
I agree. We saw substantial improvement with RR and RW too with the
'Optimize host lock change'.
Recent UFS driver patches introduced three changes:
(1) Use the UTRLCNR register instead of the doorbell register in the
completion path.
(2) Use atomic instructions instead of the host lock for updating the
outstanding_reqs structure member.
(3) Reduce lock contention on the SCSI host lock.
My patch preserves (3) so it should preserve the performance
improvements that are the result of eliminating lock contention for
outstanding_reqs updates.
Thanks,
Bart.