ANDROID: uid_sys_stats: reduce update_io_stats overhead
authorJin Qian <jinqian@google.com>
Fri, 14 Apr 2017 00:07:58 +0000 (17:07 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 1 May 2017 09:51:49 +0000 (15:21 +0530)
commitda83daedc80f9923f22ce9a87bea8e5d240d3e15
treed7fb05189dfe642a154fa6d7dd24bdcc020c9985
parent09ebc323c3b203f96191a5d928dde07be3fc966a
ANDROID: 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>
drivers/misc/uid_sys_stats.c