linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Rework write error handling in pblk
@ 2018-04-19 16:39 Hans Holmberg
  2018-04-19 16:39 ` [PATCH 1/3] lightnvm: pblk: rework write error recovery path Hans Holmberg
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Hans Holmberg @ 2018-04-19 16:39 UTC (permalink / raw)
  To: Matias Bjorling; +Cc: linux-block, Javier Gonzales, linux-kernel, Hans Holmberg

From: Hans Holmberg <hans.holmberg@cnexlabs.com>

This patch series fixes the(currently incomplete) write error handling 
in pblk by:

 * queuing and re-submitting failed writes in the write buffer
 * evacuating valid data data in lines with write failures, so the
   chunk(s) with write failures can be reset to a known state by the fw

Lines with failures in smeta are put back on the free list.
Failed chunks will be reset on the next use.

If a write failes in emeta, the lba list is cached so the line can be 
garbage collected without scanning the out-of-band area.

Hans Holmberg (3):
  lightnvm: pblk: rework write error recovery path
  lightnvm: pblk: garbage collect lines with failed writes
  lightnvm: pblk: fix smeta write error path

 drivers/lightnvm/pblk-core.c     |  50 +++++++-
 drivers/lightnvm/pblk-gc.c       |  79 ++++++++-----
 drivers/lightnvm/pblk-init.c     |  41 +++++--
 drivers/lightnvm/pblk-recovery.c |  91 ---------------
 drivers/lightnvm/pblk-rl.c       |  29 ++++-
 drivers/lightnvm/pblk-sysfs.c    |  15 ++-
 drivers/lightnvm/pblk-write.c    | 243 ++++++++++++++++++++++++++++-----------
 drivers/lightnvm/pblk.h          |  33 ++++--
 8 files changed, 362 insertions(+), 219 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2018-04-23 12:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 16:39 [PATCH 0/3] Rework write error handling in pblk Hans Holmberg
2018-04-19 16:39 ` [PATCH 1/3] lightnvm: pblk: rework write error recovery path Hans Holmberg
2018-04-20 18:38   ` Javier Gonzalez
2018-04-23 12:39     ` Hans Holmberg
2018-04-19 16:39 ` [PATCH 2/3] lightnvm: pblk: garbage collect lines with failed writes Hans Holmberg
2018-04-20 18:49   ` Javier Gonzalez
2018-04-23 12:41     ` Hans Holmberg
2018-04-19 16:39 ` [PATCH 3/3] lightnvm: pblk: fix smeta write error path Hans Holmberg
2018-04-20 18:51   ` Javier Gonzalez

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).