diff options
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index 3795e0708a22..74a5498c29a1 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -4091,7 +4091,7 @@ int blk_register_queue(struct gendisk *disk) | |||
4091 | return ret; | 4091 | return ret; |
4092 | } | 4092 | } |
4093 | 4093 | ||
4094 | ret = bsg_register_disk(disk); | 4094 | ret = bsg_register_queue(q, disk->disk_name); |
4095 | if (ret) { | 4095 | if (ret) { |
4096 | elv_unregister_queue(q); | 4096 | elv_unregister_queue(q); |
4097 | kobject_unregister(&q->kobj); | 4097 | kobject_unregister(&q->kobj); |
@@ -4106,7 +4106,7 @@ void blk_unregister_queue(struct gendisk *disk) | |||
4106 | request_queue_t *q = disk->queue; | 4106 | request_queue_t *q = disk->queue; |
4107 | 4107 | ||
4108 | if (q && q->request_fn) { | 4108 | if (q && q->request_fn) { |
4109 | bsg_unregister_disk(disk); | 4109 | bsg_unregister_queue(q); |
4110 | elv_unregister_queue(q); | 4110 | elv_unregister_queue(q); |
4111 | 4111 | ||
4112 | kobject_uevent(&q->kobj, KOBJ_REMOVE); | 4112 | kobject_uevent(&q->kobj, KOBJ_REMOVE); |