aboutsummaryrefslogtreecommitdiffstats
path: root/block/ll_rw_blk.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2007-03-28 07:29:24 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 02:52:46 -0400
commit4e2872d6b0252d33f28ea67f33704208ca781978 (patch)
treef65f01929d9a262d57e779705ff3cc643ad0ffd0 /block/ll_rw_blk.c
parentd351af01b9307566135cb0f355ca65d0952c10b5 (diff)
bind bsg to all SCSI devices
This patch binds bsg to all SCSI devices (their request queues) like the current sg driver does. We can send SCSI commands to non disk and cdrom scsi devices like OSD via bsg. This patch removes bsg_register_queue from blk_register_queue so bsg devices aren't bound to non SCSI block devices. If they want bsg, I'll send a patch to do that. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r--block/ll_rw_blk.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index 74a5498c29a1..ef42bb2b12b6 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -4091,13 +4091,6 @@ int blk_register_queue(struct gendisk *disk)
4091 return ret; 4091 return ret;
4092 } 4092 }
4093 4093
4094 ret = bsg_register_queue(q, disk->disk_name);
4095 if (ret) {
4096 elv_unregister_queue(q);
4097 kobject_unregister(&q->kobj);
4098 return ret;
4099 }
4100
4101 return 0; 4094 return 0;
4102} 4095}
4103 4096
@@ -4106,7 +4099,6 @@ void blk_unregister_queue(struct gendisk *disk)
4106 request_queue_t *q = disk->queue; 4099 request_queue_t *q = disk->queue;
4107 4100
4108 if (q && q->request_fn) { 4101 if (q && q->request_fn) {
4109 bsg_unregister_queue(q);
4110 elv_unregister_queue(q); 4102 elv_unregister_queue(q);
4111 4103
4112 kobject_uevent(&q->kobj, KOBJ_REMOVE); 4104 kobject_uevent(&q->kobj, KOBJ_REMOVE);