uid_sys_stats: reduce update_io_stats overhead
authorJin Qian <jinqian@google.com>
Fri, 14 Apr 2017 00:07:58 +0000 (17:07 -0700)
committerDanny Wood <danwood76@gmail.com>
Sun, 31 Mar 2019 08:48:11 +0000 (09:48 +0100)
commit47ca884d09575ec6cf07a389064d422b0a7309c4
treed095f74ebfb3daebf070c8eeb99f2544f5b57b2d
parent9e852762e6d7488db5bb4a7c6494fecc438109b1
uid_sys_stats: reduce update_io_stats overhead

Replaced read_lock with rcu_read_lock to reduce time that preemption
is disabled.

Added a function to update io stats for specific uid and moved
hash table lookup, user_namespace out of loops.

Bug: 37319300
Change-Id: I2b81b5cd3b6399b40d08c3c14b42cad044556970
Signed-off-by: Jin Qian <jinqian@google.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
drivers/misc/uid_sys_stats.c