summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-vdo/memory-alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* dm vdo logger: change from uds_ to vdo_ namespaceMike Snitzer2024-03-041-7/+7
| | | | | | | | Rename all uds_log_* to vdo_log_*. Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Chung Chung <cchung@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com>
* dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESSMike Snitzer2024-03-041-6/+6
| | | | | | | | | | | Also rename ASSERT to VDO_ASSERT and ASSERT_LOG_ONLY to VDO_ASSERT_LOG_ONLY. But re-introduce ASSERT and ASSERT_LOG_ONLY as a placeholder for the benefit of dm-vdo/indexer. Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Matthew Sakai <msakai@redhat.com>
* dm vdo memory-alloc: return VDO_SUCCESS on successMike Snitzer2024-03-041-12/+12
| | | | | Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Matthew Sakai <msakai@redhat.com>
* dm vdo memory-alloc: change from uds_ to vdo_ namespaceMike Snitzer2024-03-041-20/+18
| | | | | Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Matthew Sakai <msakai@redhat.com>
* dm vdo memory-alloc: simplify allocations_allowed()Mike Snitzer2024-03-041-4/+2
| | | | | | Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com>
* dm vdo: remove internal ticket referencesSusan LeGendre-McGhee2024-03-041-4/+4
| | | | | | Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
* dm vdo thread-registry: rename all methods to reflect vdo-only useMike Snitzer2024-03-011-6/+6
| | | | | | | | Otherwise, uds_ prefix is misleading (vdo_ is the new catch-all for code that is used by vdo-only or _both_ vdo and the indexer code). Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Matthew Sakai <msakai@redhat.com>
* dm vdo: add memory allocation utilitiesMatthew Sakai2024-02-201-0/+442
This patch adds standardized allocation macros and memory tracking tools to track and report any allocated memory that is not freed. This makes it easier to ensure that the vdo target does not leak memory. This patch also adds utilities for controlling whether certain threads are allowed to allocate memory, since memory allocation during certain critical code sections can cause the vdo target to deadlock. Co-developed-by: J. corwin Coburn <corwin@hurlbutnet.net> Signed-off-by: J. corwin Coburn <corwin@hurlbutnet.net> Co-developed-by: Michael Sclafani <dm-devel@lists.linux.dev> Signed-off-by: Michael Sclafani <dm-devel@lists.linux.dev> Co-developed-by: Thomas Jaskiewicz <tom@jaskiewicz.us> Signed-off-by: Thomas Jaskiewicz <tom@jaskiewicz.us> Co-developed-by: Ken Raeburn <raeburn@redhat.com> Signed-off-by: Ken Raeburn <raeburn@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>