linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Badblock tracking for gendisks
@ 2015-11-21  0:49 Vishal Verma
  2015-11-21  0:49 ` [PATCH 1/3] badblocks: Add core badblock management code Vishal Verma
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Vishal Verma @ 2015-11-21  0:49 UTC (permalink / raw)
  To: linux-nvdimm
  Cc: Vishal Verma, linux-block, linux-raid, linux-scsi, Jens Axboe,
	NeilBrown, Jeff Moyer

Patch 1 copies badblock management code into a header of its own,
making it generally available. It follows common libraries of code
such as linked lists, where anyone may embed a core data structure
in another place, and use the provided accessor functions to
manipulate the data.

Patch 2 adds badblock tracking to gendisks (in preparation for use
by NVDIMM devices). Right now, it is turned on unconditionally - I'd
appreciate comments on if that is the right path.

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.

Vishal Verma (3):
  badblocks: Add core badblock management code
  block: Add badblock management for gendisks
  md: convert to use the generic badblocks code

 block/genhd.c             |  64 ++++++
 drivers/md/md.c           | 495 ++------------------------------------------
 drivers/md/md.h           |  31 +--
 include/linux/badblocks.h | 512 ++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/genhd.h     |   6 +
 5 files changed, 603 insertions(+), 505 deletions(-)
 create mode 100644 include/linux/badblocks.h

-- 
2.5.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-11-25 18:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-21  0:49 [PATCH 0/3] Badblock tracking for gendisks Vishal Verma
2015-11-21  0:49 ` [PATCH 1/3] badblocks: Add core badblock management code Vishal Verma
2015-11-24 19:19   ` Jens Axboe
2015-11-21  0:49 ` [PATCH 2/3] block: Add badblock management for gendisks Vishal Verma
2015-11-24 15:34   ` Jeff Moyer
2015-11-24 19:03     ` Verma, Vishal L
2015-11-24 19:14       ` Jeff Moyer
2015-11-24 20:10         ` Verma, Vishal L
2015-11-24 21:31           ` Dan Williams
2015-11-25 15:37           ` Jeff Moyer
2015-11-25 17:55             ` Verma, Vishal L
2015-11-25 18:07               ` Jeff Moyer
2015-11-21  0:49 ` [PATCH 3/3] md: convert to use the generic badblocks code Vishal Verma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).