aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/memory-alloc.c
AgeCommit message (Collapse)AuthorFilesLines
2024-03-04dm vdo logger: change from uds_ to vdo_ namespaceMike Snitzer1-7/+7
Rename all uds_log_* to vdo_log_*. Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Chung Chung <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-04dm vdo permassert: audit all of ASSERT to test for VDO_SUCCESSMike Snitzer1-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 <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-04dm vdo memory-alloc: return VDO_SUCCESS on successMike Snitzer1-12/+12
Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-04dm vdo memory-alloc: change from uds_ to vdo_ namespaceMike Snitzer1-20/+18
Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-04dm vdo memory-alloc: simplify allocations_allowed()Mike Snitzer1-4/+2
Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Susan LeGendre-McGhee <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-03-04dm vdo: remove internal ticket referencesSusan LeGendre-McGhee1-4/+4
Signed-off-by: Susan LeGendre-McGhee <[email protected]> Signed-off-by: Matthew Sakai <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
2024-03-01dm vdo thread-registry: rename all methods to reflect vdo-only useMike Snitzer1-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 <[email protected]> Signed-off-by: Matthew Sakai <[email protected]>
2024-02-20dm vdo: add memory allocation utilitiesMatthew Sakai1-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 <[email protected]> Signed-off-by: J. corwin Coburn <[email protected]> Co-developed-by: Michael Sclafani <[email protected]> Signed-off-by: Michael Sclafani <[email protected]> Co-developed-by: Thomas Jaskiewicz <[email protected]> Signed-off-by: Thomas Jaskiewicz <[email protected]> Co-developed-by: Ken Raeburn <[email protected]> Signed-off-by: Ken Raeburn <[email protected]> Signed-off-by: Matthew Sakai <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>