libnvdimm: protect nvdimm_{bus|namespace}_add_poison() with nvdimm_bus_lock()
authorDan Williams <dan.j.williams@intel.com>
Wed, 17 Feb 2016 23:25:36 +0000 (15:25 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 5 Mar 2016 20:24:06 +0000 (12:24 -0800)
commit5faecf4eb0d7d67e809a4bc9059c764c27670832
tree0e2a02dddf63ba1b5b0513cc78ac7c8507966aba
parentaef25338226660cdd4df908c2eff1abdcfca65e5
libnvdimm: protect nvdimm_{bus|namespace}_add_poison() with nvdimm_bus_lock()

In preparation for making poison list retrieval asynchronus to region
registration, add protection for walking and mutating the bus-level
poison list.

Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/core.c