Joao Martins 61e28cf054 memory-failure: fetch compound_head after pgmap_pfn_valid()
memory_failure_dev_pagemap() at the moment assumes base pages (e.g.
dax_lock_page()).  For devmap with compound pages fetch the
compound_head in case a tail page memory failure is being handled.

Currently this is a nop, but in the advent of compound pages in
dev_pagemap it allows memory_failure_dev_pagemap() to keep working.

Without this fix memory-failure handling (i.e.  MCEs on pmem) with
device-dax configured namespaces will regress (and crash).

Link: https://lkml.kernel.org/r/20211202204422.26777-2-joao.m.martins@oracle.com
Reported-by: Jane Chu <jane.chu@oracle.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-01-30 09:56:58 +02:00
..
2022-01-10 11:58:12 -08:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-11-25 10:13:56 -08:00
2022-01-22 08:33:38 +02:00
2022-01-15 16:30:28 +02:00
2022-01-22 08:33:38 +02:00
2021-11-10 11:29:30 -08:00
2022-01-15 16:30:28 +02:00
2021-06-05 20:43:15 +00:00
2022-01-23 06:20:44 +02:00
2021-05-07 00:26:35 -07:00
2021-04-16 16:10:37 -07:00
2022-01-22 08:33:38 +02:00
2022-01-18 06:40:47 +02:00
2022-01-22 08:33:38 +02:00
2022-01-15 16:30:30 +02:00
2022-01-15 16:30:31 +02:00