linux/mm/damon
SeongJae Park d78f3853f8 mm/damon/dbgfs: fix missed use of damon_dbgfs_lock
DAMON debugfs is supposed to protect dbgfs_ctxs, dbgfs_nr_ctxs, and
dbgfs_dirs using damon_dbgfs_lock.  However, some of the code is
accessing the variables without the protection.  This fixes it by
protecting all such accesses.

Link: https://lkml.kernel.org/r/20211110145758.16558-3-sj@kernel.org
Fixes: 75c1c2b53c ("mm/damon/dbgfs: support multiple contexts")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-20 10:35:54 -08:00
..
core-test.h mm/damon/core-test: fix wrong expectations for 'damon_split_regions_of()' 2021-10-28 17:18:55 -07:00
core.c mm/damon: fix a few spelling mistakes in comments and a pr_debug message 2021-11-06 13:30:46 -07:00
dbgfs-test.h mm/damon: fix a few spelling mistakes in comments and a pr_debug message 2021-11-06 13:30:46 -07:00
dbgfs.c mm/damon/dbgfs: fix missed use of damon_dbgfs_lock 2021-11-20 10:35:54 -08:00
Kconfig mm/damon: introduce DAMON-based Reclamation (DAMON_RECLAIM) 2021-11-06 13:30:46 -07:00
Makefile mm/damon: introduce DAMON-based Reclamation (DAMON_RECLAIM) 2021-11-06 13:30:46 -07:00
paddr.c mm/damon/vaddr,paddr: support pageout prioritization 2021-11-06 13:30:45 -07:00
prmtv-common.c mm/damon/vaddr,paddr: support pageout prioritization 2021-11-06 13:30:45 -07:00
prmtv-common.h mm/damon/vaddr,paddr: support pageout prioritization 2021-11-06 13:30:45 -07:00
reclaim.c mm/damon: introduce DAMON-based Reclamation (DAMON_RECLAIM) 2021-11-06 13:30:46 -07:00
vaddr-test.h mm/damon: fix a few spelling mistakes in comments and a pr_debug message 2021-11-06 13:30:46 -07:00
vaddr.c mm/damon: remove unnecessary variable initialization 2021-11-06 13:30:46 -07:00