[PATCH v5 2/3] block: Add badblock management for gendisks

2015-12-24 Thread Vishal Verma
to gendisks. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/genhd.c | 76 +++ include/linux/genhd.h | 7 + 2 files changed, 83 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index e5cafa5..81dcf32 100644 --- a

[PATCH v5 3/3] md: convert to use the generic badblocks code

2015-12-24 Thread Vishal Verma
Retain badblocks as part of rdev, but use the accessor functions from include/linux/badblocks for all manipulation. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- drivers/md/md.c | 516 +++- drivers/md/md.h | 40 + 2

[PATCH v5 1/3] badblocks: Add core badblock management code

2015-12-24 Thread Vishal Verma
in this copy of the code are ones to generalize function/variable names from md-specific ones. Also add init and free functions. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/Makefile| 2 +- block/badblocks.c

[PATCH v5 0/3] Badblock tracking for gendisks

2015-12-24 Thread Vishal Verma
ion for use by NVDIMM devices). Patch 3 converts md over to use the new badblocks 'library'. I have done some pretty simple testing on this - created a raid 1 device, made sure the sysfs entries show up, and can be used to add and view badblocks. A closer look by the md folks would be nice here. Vis

[PATCH v4 1/3] badblocks: Add core badblock management code

2015-12-08 Thread Vishal Verma
in this copy of the code are ones to generalize function/variable names from md-specific ones. Also add init and free functions. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/Makefile| 2 +- block/badblocks.c

[PATCH v4 3/3] md: convert to use the generic badblocks code

2015-12-08 Thread Vishal Verma
Retain badblocks as part of rdev, but use the accessor functions from include/linux/badblocks for all manipulation. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- drivers/md/md.c | 516 +++- drivers/md/md.h | 40 + 2

[PATCH v4 2/3] block: Add badblock management for gendisks

2015-12-08 Thread Vishal Verma
to gendisks. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/genhd.c | 76 +++ include/linux/genhd.h | 7 + 2 files changed, 83 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index e5cafa5..81dcf32 100644 --- a

[PATCH v4 0/3] Badblock tracking for gendisks

2015-12-08 Thread Vishal Verma
ade sure the sysfs entries show up, and can be used to add and view badblocks. A closer look by the md folks would be nice here. Vishal Verma (3): badblocks: Add core badblock management code block: Add badblock management for gendisks md: convert to use the generic badblocks code bl

[PATCH v2 1/3] badblocks: Add core badblock management code

2015-12-07 Thread Vishal Verma
in this copy of the code are ones to generalize function/variable names from md-specific ones. Also add init and free functions. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/Makefile| 2 +- block/badblocks.c

[PATCH v2 3/3] md: convert to use the generic badblocks code

2015-12-07 Thread Vishal Verma
Retain badblocks as part of rdev, but use the accessor functions from include/linux/badblocks for all manipulation. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- drivers/md/md.c | 516 +++- drivers/md/md.h | 40 + 2

[PATCH v2 0/3] Badblock tracking for gendisks

2015-12-07 Thread Vishal Verma
how up, and can be used to add and view badblocks. A closer look by the md folks would be nice here. Vishal Verma (3): badblocks: Add core badblock management code block: Add badblock management for gendisks md: convert to use the generic badblocks code block/Makefile| 2 +- bl

[PATCH v2 2/3] block: Add badblock management for gendisks

2015-12-07 Thread Vishal Verma
to gendisks. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/genhd.c | 76 +++ include/linux/genhd.h | 7 + 2 files changed, 83 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index 0c706f3..809e3e2 100644 --- a

[PATCH v2 0/3] Badblock tracking for gendisks

2015-11-25 Thread Vishal Verma
ere. Vishal Verma (3): badblocks: Add core badblock management code block: Add badblock management for gendisks md: convert to use the generic badblocks code block/Makefile| 2 +- block/badblocks.c | 523 ++ block/genh

[PATCH v2 3/3] md: convert to use the generic badblocks code

2015-11-25 Thread Vishal Verma
Retain badblocks as part of rdev, but use the accessor functions from include/linux/badblocks for all manipulation. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- drivers/md/md.c | 507 +++- drivers/md/md.h | 40 + 2

[PATCH v2 1/3] badblocks: Add core badblock management code

2015-11-25 Thread Vishal Verma
in this copy of the code are ones to generalize function/variable names from md-specific ones. Also add init and free functions. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/Makefile| 2 +- block/badblocks.c

[PATCH v2 2/3] block: Add badblock management for gendisks

2015-11-25 Thread Vishal Verma
to gendisks. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/genhd.c | 81 +++ include/linux/genhd.h | 6 2 files changed, 87 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index 0c706f3..84fd65c 100644 --- a

[PATCH 0/3] Badblock tracking for gendisks

2015-11-20 Thread Vishal Verma
device, made sure the sysfs entries show up, and can be used to add and view badblocks. A closer look by the md folks would be nice here. Vishal Verma (3): badblocks: Add core badblock management code block: Add badblock management for gendisks md: convert to use the generic badblocks code

[PATCH 3/3] md: convert to use the generic badblocks code

2015-11-20 Thread Vishal Verma
Retain badblocks as part of rdev, but use the accessor functions from include/linux/badblocks for all manipulation. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- drivers/md/md.c | 495 +++- drivers/md/md.h | 31 +--- 2

[PATCH 1/3] badblocks: Add core badblock management code

2015-11-20 Thread Vishal Verma
in this copy of the code are ones to generalize function/variable names from md-specific ones. Also add init and free functions. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- include/linux/badblocks.h | 512 ++ 1 file changed, 512 inse

[PATCH 2/3] block: Add badblock management for gendisks

2015-11-20 Thread Vishal Verma
to gendisks. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- block/genhd.c | 64 +++ include/linux/genhd.h | 6 + 2 files changed, 70 insertions(+) diff --git a/block/genhd.c b/block/genhd.c index 0c706f3..4209c32 100644 --- a

[RFC PATCH] block: introduce poison tracking for block devices

2015-11-19 Thread Vishal Verma
on such a device. Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> --- This really is a copy-paste + a few modifications of the badblock management code + sysfs representation from md. In this RFC, I want to make sure this path sounds acceptable for the use case described above, for N