Re: [PATCH] pmem: don't allocate unused major device number

2016-03-20 Thread Boaz Harrosh
On 03/09/2016 12:21 AM, NeilBrown wrote: > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > number is completely ignored: all devices are allocated with a > major of BLOCK_EXT_MAJOR. > > So there is no point allocating pmem_major. > > Signed-off-by: NeilBrown

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-20 Thread Boaz Harrosh
On 03/09/2016 12:21 AM, NeilBrown wrote: > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > number is completely ignored: all devices are allocated with a > major of BLOCK_EXT_MAJOR. > > So there is no point allocating pmem_major. > > Signed-off-by: NeilBrown Tested-by:

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-09 Thread Dan Williams
On Tue, Mar 8, 2016 at 2:21 PM, NeilBrown wrote: > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > number is completely ignored: all devices are allocated with a > major of BLOCK_EXT_MAJOR. > > So there is no point allocating pmem_major. > > Signed-off-by:

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-09 Thread Dan Williams
On Tue, Mar 8, 2016 at 2:21 PM, NeilBrown wrote: > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > number is completely ignored: all devices are allocated with a > major of BLOCK_EXT_MAJOR. > > So there is no point allocating pmem_major. > > Signed-off-by: NeilBrown > ---

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-09 Thread Ross Zwisler
On Tue, Mar 08, 2016 at 02:29:58PM -0800, Dan Williams wrote: > On Tue, Mar 8, 2016 at 2:21 PM, NeilBrown wrote: > > > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > > number is completely ignored: all devices are allocated with a > > major of

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-09 Thread Ross Zwisler
On Tue, Mar 08, 2016 at 02:29:58PM -0800, Dan Williams wrote: > On Tue, Mar 8, 2016 at 2:21 PM, NeilBrown wrote: > > > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > > number is completely ignored: all devices are allocated with a > > major of BLOCK_EXT_MAJOR. > > > > So

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-08 Thread Dan Williams
On Tue, Mar 8, 2016 at 2:21 PM, NeilBrown wrote: > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > number is completely ignored: all devices are allocated with a > major of BLOCK_EXT_MAJOR. > > So there is no point allocating pmem_major. > > Signed-off-by:

Re: [PATCH] pmem: don't allocate unused major device number

2016-03-08 Thread Dan Williams
On Tue, Mar 8, 2016 at 2:21 PM, NeilBrown wrote: > > When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major > number is completely ignored: all devices are allocated with a > major of BLOCK_EXT_MAJOR. > > So there is no point allocating pmem_major. > > Signed-off-by: NeilBrown > ---

[PATCH] pmem: don't allocate unused major device number

2016-03-08 Thread NeilBrown
When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major number is completely ignored: all devices are allocated with a major of BLOCK_EXT_MAJOR. So there is no point allocating pmem_major. Signed-off-by: NeilBrown --- drivers/nvdimm/pmem.c | 19 +--

[PATCH] pmem: don't allocate unused major device number

2016-03-08 Thread NeilBrown
When alloc_disk(0) or alloc_disk-node(0, XX) is used, the ->major number is completely ignored: all devices are allocated with a major of BLOCK_EXT_MAJOR. So there is no point allocating pmem_major. Signed-off-by: NeilBrown --- drivers/nvdimm/pmem.c | 19 +-- 1 file changed,