summaryrefslogtreecommitdiff
path: root/tools/time
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2019-12-18 11:04:07 -0800
committerJohn Johansen <john.johansen@canonical.com>2020-01-02 05:31:40 -0800
commit20d4e80d255dd7cfecb53743bc550ebcad04549d (patch)
treec740dec5f800df330c303db8018620b8bb0371f1 /tools/time
parent9c95a278ba7ca3ccc111c165cc74cb23c744fc85 (diff)
apparmor: only get a label reference if the fast path check fails
The common fast path check can be done under rcu_read_lock() and doesn't need a reference count on the label. Only take a reference count if entering the slow path. Fixes reported hackbench regression - sha1 79e178a57dae ("Merge tag 'apparmor-pr-2019-12-03' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor") hackbench -l (256000/#grp) -g #grp 128 groups 19.679 ±0.90% - previous sha1 01d1dff64662 ("Merge tag 's390-5.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux") hackbench -l (256000/#grp) -g #grp 128 groups 3.1689 ±3.04% Reported-by: Vincent Guittot <vincent.guittot@linaro.org> Tested-by: Vincent Guittot <vincent.guittot@linaro.org> Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Fixes: bce4e7e9c45e ("apparmor: reduce rcu_read_lock scope for aa_file_perm mediation") Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/time')
0 files changed, 0 insertions, 0 deletions