summaryrefslogtreecommitdiffstats
path: root/fs/verity/verify.c
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-05-09 18:20:56 -0700
committerAndrew Morton <akpm@linux-foundation.org>2022-05-13 07:20:09 -0700
commit01538719c098f51ac0742ef610d127ba3e3d1e03 (patch)
tree1cbc2423d15e5a25d95bda70b8992381d66bcb3a /fs/verity/verify.c
parent3cbab4ca1ea8752912d8719d72059869b4c18045 (diff)
downloadlinux-01538719c098f51ac0742ef610d127ba3e3d1e03.tar.gz
linux-01538719c098f51ac0742ef610d127ba3e3d1e03.tar.bz2
linux-01538719c098f51ac0742ef610d127ba3e3d1e03.zip
mm/damon/sysfs: update schemes stat in the kdamond context
Only '->kdamond' and '->kdamond_stop' are protected by 'kdamond_lock' of 'struct damon_ctx'. All other DAMON context internal data items are recommended to be accessed in DAMON callbacks, or under some additional synchronizations. But, DAMON sysfs is accessing the schemes stat under 'kdamond_lock'. It makes no big issue as the read values are not used anywhere inside kernel, but would better to be fixed. This commit moves the reads to DAMON callback context, as supposed to be used for the purpose. Link: https://lkml.kernel.org/r/20220429160606.127307-11-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/verity/verify.c')
0 files changed, 0 insertions, 0 deletions