]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memory-failure.c: rework the try_to_unmap logic in hwpoison_user_mappings()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:44:27 +0000 (14:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:07 +0000 (15:57 -0700)
commit5e00b634e193520dfe3b4cc2655580eb74d13328
tree01dfe7f4a93d489de74970be3cb1db7a64bcbddc
parent69c99ac2937a7770a59b8c20d6cb03537a849f22
mm/memory-failure.c: rework the try_to_unmap logic in hwpoison_user_mappings()

Only for hugetlb pages in shared mappings, try_to_unmap should take
semaphore in write mode here.  Rework the code to make it clear.

Link: https://lkml.kernel.org/r/20220218090118.1105-7-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory-failure.c