Messages in this thread Patch in this message | | | Date | Tue, 18 Jan 2005 16:09:36 -0800 | From | Greg KH <> | Subject | [PATCH] AOE: fix up the block device registration so that it actually works now. |
| |
Ed, I need the following patch against the latest -bk tree in order to get the aoe code to load and work properly. Does it look good to you?
thanks,
greg k-h
-------------
AOE: fix up the block device registration so that it actually works now.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
diff -Nru a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c --- a/drivers/block/aoe/aoeblk.c 2005-01-18 16:06:57 -08:00 +++ b/drivers/block/aoe/aoeblk.c 2005-01-18 16:06:57 -08:00 @@ -249,6 +249,7 @@ aoeblk_exit(void) { kmem_cache_destroy(buf_pool_cache); + unregister_blkdev(AOE_MAJOR, DEVICE_NAME); } int __init diff -Nru a/drivers/block/aoe/aoemain.c b/drivers/block/aoe/aoemain.c --- a/drivers/block/aoe/aoemain.c 2005-01-18 16:06:57 -08:00 +++ b/drivers/block/aoe/aoemain.c 2005-01-18 16:06:57 -08:00 @@ -82,11 +82,6 @@ ret = aoenet_init(); if (ret) goto net_fail; - ret = register_blkdev(AOE_MAJOR, DEVICE_NAME); - if (ret < 0) { - printk(KERN_ERR "aoe: aoeblk_init: can't register major\n"); - goto blkreg_fail; - } printk(KERN_INFO "aoe: aoe_init: AoE v2.6-%s initialised.\n", - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |