Re: [PATCH v3 04/15] libnvdimm, pmem: move request_queue allocation earlier in probe

2015-11-03 Thread Ross Zwisler
On Sun, Nov 01, 2015 at 11:30:04PM -0500, Dan Williams wrote: > Before the dynamically allocated struct pages from devm_memremap_pages() > can be put to use outside the driver, we need a mechanism to track > whether they are still in use at teardown. Towards that goal reorder > the initialization

[PATCH v3 04/15] libnvdimm, pmem: move request_queue allocation earlier in probe

2015-11-01 Thread Dan Williams
Before the dynamically allocated struct pages from devm_memremap_pages() can be put to use outside the driver, we need a mechanism to track whether they are still in use at teardown. Towards that goal reorder the initialization sequence to allow the 'q_usage_counter' from the request_queue to be u