On Mon, May 04, 2015 at 10:43:01AM -0600, Ross Zwisler wrote:
> Yes, if CONFIG_DEBUG_BLOCK_EXT_DEVT isn't set that code
doesn't work at all.
I can't figure out a use case that breaks when using dynamically allocated
minors without CONFIG_DEBUG_BLOCK_EXT_DEVT. The patch that I've been testing
against is at the bottom of this mail.
Here are the minors that I get when creating a bunch of partitions using the
current code with PMEM_MINORS=16, with CONFIG_DEBUG_BLOCK_EXT_DEVT turned off:
FYI, your patch below works fine for me, but the original one certainly
didn't. One big difference was that it also removed the register_blkdev
call and thus assigning a major number.