Re: [PATCH v3 5/7] block: Delay default elevator initialization

2019-09-04 Thread Damien Le Moal
On 2019/09/04 21:57, Jens Axboe wrote: > On 9/4/19 3:02 AM, Damien Le Moal wrote: >> On 2019/09/04 17:56, Johannes Thumshirn wrote: >>> On 04/09/2019 10:42, Damien Le Moal wrote: @@ -734,6 +741,7 @@ static void __device_add_disk(struct device *parent, struct gendisk *disk,

Re: [PATCH v3 5/7] block: Delay default elevator initialization

2019-09-04 Thread Jens Axboe
On 9/4/19 3:02 AM, Damien Le Moal wrote: > On 2019/09/04 17:56, Johannes Thumshirn wrote: >> On 04/09/2019 10:42, Damien Le Moal wrote: >>> @@ -734,6 +741,7 @@ static void __device_add_disk(struct device *parent, >>> struct gendisk *disk, >>> exact_match, exact_lock

Re: [PATCH v3 5/7] block: Delay default elevator initialization

2019-09-04 Thread Damien Le Moal
On 2019/09/04 17:56, Johannes Thumshirn wrote: > On 04/09/2019 10:42, Damien Le Moal wrote: >> @@ -734,6 +741,7 @@ static void __device_add_disk(struct device *parent, >> struct gendisk *disk, >> exact_match, exact_lock, disk); >> } >> register_disk(paren

Re: [PATCH v3 5/7] block: Delay default elevator initialization

2019-09-04 Thread Johannes Thumshirn
On 04/09/2019 10:42, Damien Le Moal wrote: > @@ -734,6 +741,7 @@ static void __device_add_disk(struct device *parent, > struct gendisk *disk, > exact_match, exact_lock, disk); > } > register_disk(parent, disk, groups); > + > if (register_queue) >

[PATCH v3 5/7] block: Delay default elevator initialization

2019-09-04 Thread Damien Le Moal
When elevator_init_mq() is called from blk_mq_init_allocated_queue(), the only information known about the device is the number of hardware queues as the block device scan by the device driver is not completed yet. The device type and the device required features are not set yet, preventing to corr