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)
committerDmitry Shmidt <dimitrysh@google.com>
Thu, 20 Apr 2017 21:47:08 +0000 (21:47 +0000)
commit67f252c89db4af5a7c8df9163967c06e80133ff7
treea22cce6b491140b2ae47e0de785e4345c7ef31ff
parent6b4bbab071da8df7a78be4514230bf1369d2b537
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