]> git.baikalelectronics.ru Git - kernel.git/commit
md: move allocation of ->queue from mddev_find to md_probe
authorNeilBrown <neilb@suse.de>
Thu, 8 Jan 2009 21:31:08 +0000 (08:31 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 8 Jan 2009 21:31:08 +0000 (08:31 +1100)
commit3d7e6632a1188e3a89cedba455f05fd3e63a8f29
tree37f9c4da6c861a69b4695ea7818eab2cf6ce95f4
parent9e6fbd55cc2709d9fe5484b6f3817e3149c8fba7
md: move allocation of ->queue from mddev_find to md_probe

It is more balanced to just do simple initialisation in mddev_find,
which allocates and links a new md device, and leave all the
more sophisticated allocation to md_probe (which calls mddev_find).
md_probe already allocated the gendisk.  It should allocate the
queue too.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c