All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] BTT error clearing rework
@ 2017-07-17 21:27 Vishal Verma
  2017-07-17 21:27 ` [PATCH v2 1/6] btt: fix a missed NVDIMM_IO_ATOMIC case in the write path Vishal Verma
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Vishal Verma @ 2017-07-17 21:27 UTC (permalink / raw)
  To: linux-nvdimm; +Cc: Rafael J. Wysocki

Changes in v2:
 - Drop the ACPI allocation change patch. Instead use
   memalloc_noio_{save,restore} to set the GFP_NOIO flag around anything
   that can be expected to call into ACPI for clearing errors. (Rafael, Dan).

Clearing errors or badblocks during a BTT write requires sending an ACPI
DSM, which means potentially sleeping. Since a BTT IO happens in atomic
context (preemption disabled, spinlocks may be held), we cannot perform
error clearing in the course of an IO. Due to this error clearing for
BTT IOs has hitherto been disabled.

This series fixes these problems by moving the error clearing out of
the atomic sections in the BTT.

Also fix a potential deadlock that can occur while clearing errors
from either BTT or pmem due to memory allocations in the IO path.


Vishal Verma (6):
  btt: fix a missed NVDIMM_IO_ATOMIC case in the write path
  btt: refactor map entry operations with macros
  btt: ensure that flags were also unchanged during a map_read
  btt: cache sector_size in arena_info
  libnvdimm, btt: rework error clearing
  pmem, btt: fix potential deadlock while clearing errors

 drivers/nvdimm/btt.c   | 117 ++++++++++++++++++++++++++++++++++++++++++-------
 drivers/nvdimm/btt.h   |  11 +++++
 drivers/nvdimm/claim.c |   9 +---
 drivers/nvdimm/pmem.c  |   4 ++
 4 files changed, 116 insertions(+), 25 deletions(-)

-- 
2.9.3
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

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

end of thread, other threads:[~2017-07-17 22:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 21:27 [PATCH v2 0/6] BTT error clearing rework Vishal Verma
2017-07-17 21:27 ` [PATCH v2 1/6] btt: fix a missed NVDIMM_IO_ATOMIC case in the write path Vishal Verma
2017-07-17 21:27 ` [PATCH v2 2/6] btt: refactor map entry operations with macros Vishal Verma
2017-07-17 21:27 ` [PATCH v2 3/6] btt: ensure that flags were also unchanged during a map_read Vishal Verma
2017-07-17 21:27 ` [PATCH v2 4/6] btt: cache sector_size in arena_info Vishal Verma
2017-07-17 21:27 ` [PATCH v2 5/6] libnvdimm, btt: rework error clearing Vishal Verma
2017-07-17 22:00   ` Dan Williams
2017-07-17 22:20     ` Verma, Vishal L
2017-07-17 22:32       ` Dan Williams
2017-07-17 21:27 ` [PATCH v2 6/6] pmem, btt: fix potential deadlock while clearing errors Vishal Verma
2017-07-17 21:27   ` Vishal Verma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.