]> git.baikalelectronics.ru Git - kernel.git/commit
dm kcopyd: use __GFP_HIGHMEM when allocating pages
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 13 Jul 2022 11:05:51 +0000 (07:05 -0400)
committerMike Snitzer <snitzer@kernel.org>
Thu, 14 Jul 2022 19:52:31 +0000 (15:52 -0400)
commita5ff43121ec3deaecb0fdcc4c04d521f7ef17fbf
tree26caed708591f0ef68411438e440f0661e8801c8
parent1e0cba17863a72714ee5764bfda25e877a534a5d
dm kcopyd: use __GFP_HIGHMEM when allocating pages

dm-kcopyd doesn't access the allocated pages directly, it only passes
them to dm-io which adds them to a bio list - thus, we can allocate
the pages from high memory. This will reduce pressure on the low
memory when there are a large number of kcopyd jobs in progress.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-kcopyd.c