]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: Add badblock management for gendisks
authorVishal Verma <vishal.l.verma@intel.com>
Sat, 9 Jan 2016 16:36:51 +0000 (08:36 -0800)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:40 +0000 (12:25 -0500)
commitbef521bf89b8a9e60dbaec4db3b5983d39a90829
tree61980a8c55161d636800546aad07c689f1d28085
parent3b93302be16a584c8a95695402fda6aa903d8b46
block: Add badblock management for gendisks

Orabug: 22913653

NVDIMM devices, which can behave more like DRAM rather than block
devices, may develop bad cache lines, or 'poison'. A block device
exposed by the pmem driver can then consume poison via a read (or
write), and cause a machine check. On platforms without machine
check recovery features, this would mean a crash.

The block device maintaining a runtime list of all known sectors that
have poison can directly avoid this, and also provide a path forward
to enable proper handling/recovery for DAX faults on such a device.

Use the new badblock management interfaces to add a badblocks list to
gendisks.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 99e6608c9e7414ae4f2168df8bf8fae3eb49e41f)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
block/genhd.c
include/linux/genhd.h