mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
pmem, dax: disable dax in the presence of bad blocks
Longer term teach dax to punch "error" holes in mapping requests and deliver SIGBUS to applications that consume a bad pmem page. For now, simply disable the dax performance optimization in the presence of known errors. Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
e10624f8c0
commit
57f7f317ab
2 changed files with 11 additions and 0 deletions
|
|
@ -233,6 +233,7 @@ static int pmem_attach_disk(struct device *dev,
|
|||
return -ENOMEM;
|
||||
nvdimm_namespace_add_poison(ndns, &pmem->bb, pmem->data_offset);
|
||||
|
||||
disk->bb = &pmem->bb;
|
||||
add_disk(disk);
|
||||
revalidate_disk(disk);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue