aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2018-11-23 01:21:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-23 10:53:08 +0100
commit23edf3abe7abb1d1ab856c893629b96209473a5b (patch)
tree25d6645efaf8df941d49abeaa72311755b80ca85 /tools/perf/scripts/python
parentstaging: erofs: separate into init_once / always (diff)
downloadlinux-23edf3abe7abb1d1ab856c893629b96209473a5b.tar.gz
linux-23edf3abe7abb1d1ab856c893629b96209473a5b.zip
staging: erofs: locked before registering for all new workgroups
Let's make sure that the one registering a workgroup will also take the primary work lock at first for two reasons: 1) There's no need to introduce such a race window (and consequently overhead) between registering and locking, other tasks could break in by chance, and the race seems unnecessary (no benefit at all); 2) It's better to take the primary work when a workgroup is registered to apply the cache managed policy, for example, if some other tasks break in, it could turn into the in-place decompression rather than use as the cached decompression. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions