Nitesh Shetty
711f727f7b
null_blk: Fix: memory release when memory_backed=1
...
[ Upstream commit 8cfb98196cceec35416041c6b91212d2b99392e4 ]
Memory/pages are not freed, when unloading nullblk driver.
Steps to reproduce issue
1.free -h
total used free shared buff/cache available
Mem: 7.8Gi 260Mi 7.1Gi 3.0Mi 395Mi 7.3Gi
Swap: 0B 0B 0B
2.modprobe null_blk memory_backed=1
3.dd if=/dev/urandom of=/dev/nullb0 oflag=direct bs=1M count=1000
4.modprobe -r null_blk
5.free -h
total used free shared buff/cache available
Mem: 7.8Gi 1.2Gi 6.1Gi 3.0Mi 398Mi 6.3Gi
Swap: 0B 0B 0B
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
Link: https://lore.kernel.org/r/20230605062354.24785-1-nj.shetty@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-28 11:12:39 +02:00
..
2022-09-21 19:49:24 -06:00
2023-05-11 23:03:39 +09:00
2022-09-21 19:45:04 -06:00
2023-06-28 11:12:39 +02:00
2022-07-14 12:14:30 -06:00
2023-06-09 10:34:09 +02:00
2022-09-03 13:23:11 -07:00
2022-10-14 12:28:43 -07:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-03-10 09:34:34 +01:00
2022-12-31 13:33:11 +01:00
2022-10-31 07:23:24 -06:00
2023-04-06 12:10:47 +02:00
2022-08-02 17:22:46 -06:00
2022-06-28 06:33:15 -06:00
2023-06-09 10:34:09 +02:00
2023-01-24 07:24:37 +01:00
2022-06-28 06:33:15 -06:00
2023-01-18 11:58:33 +01:00
2020-06-01 13:22:53 +02:00
2023-06-14 11:15:28 +02:00
2023-03-22 13:33:47 +01:00
2022-06-28 06:33:15 -06:00
2022-06-28 06:33:15 -06:00
2023-06-09 10:34:16 +02:00
2023-01-12 12:02:54 +01:00
2023-06-21 16:00:53 +02:00
2022-06-28 06:33:15 -06:00