sleep_info: add mas_alloc_cyclic() as a weird function
commit6753c38f0430c480458673f7b7190a8e0688f21c
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 19 Feb 2024 06:37:08 +0000 (19 09:37 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Mon, 19 Feb 2024 06:37:08 +0000 (19 09:37 +0300)
treefa1bd9c1d6453712b902f49df96bb307908573bb
parentb79fde0d7dfe7d607b5950373c2c78e7f04379ce
sleep_info: add mas_alloc_cyclic() as a weird function

These mas_ functions() do something weird.  They're always called with
mtree_lock() which disables preemption.  But then if we pass GFP_KERNEL
they drop the lock and do a sleep.  It leads to false positive sleeping
in atomic warnings.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_sleep_info.c