diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-07-09 06:40:35 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-16 02:52:46 -0400 |
commit | d351af01b9307566135cb0f355ca65d0952c10b5 (patch) | |
tree | 6d6b964e5d6474f427907ca259e6c6ac76ed9d90 /include/linux/bsg.h | |
parent | 45e79a3acdcf54113b3d7b23e9e64e6541dbfeb5 (diff) |
bsg: bind bsg to request_queue instead of gendisk
This patch binds bsg devices to request_queue instead of gendisk. Any
objects (like transport entities) can define own request_handler and
create own bsg device.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/bsg.h')
-rw-r--r-- | include/linux/bsg.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h index 2154a6dfbd53..0475a6d3ff6a 100644 --- a/include/linux/bsg.h +++ b/include/linux/bsg.h | |||
@@ -47,16 +47,16 @@ struct bsg_class_device { | |||
47 | struct class_device *class_dev; | 47 | struct class_device *class_dev; |
48 | struct device *dev; | 48 | struct device *dev; |
49 | int minor; | 49 | int minor; |
50 | struct gendisk *disk; | ||
51 | struct list_head list; | 50 | struct list_head list; |
51 | struct request_queue *queue; | ||
52 | }; | 52 | }; |
53 | 53 | ||
54 | extern int bsg_register_disk(struct gendisk *); | 54 | extern int bsg_register_queue(struct request_queue *, char *); |
55 | extern void bsg_unregister_disk(struct gendisk *); | 55 | extern void bsg_unregister_queue(struct request_queue *); |
56 | #else | 56 | #else |
57 | struct bsg_class_device { }; | 57 | struct bsg_class_device { }; |
58 | #define bsg_register_disk(disk) (0) | 58 | #define bsg_register_queue(disk, name) (0) |
59 | #define bsg_unregister_disk(disk) do { } while (0) | 59 | #define bsg_unregister_queue(disk) do { } while (0) |
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #endif /* __KERNEL__ */ | 62 | #endif /* __KERNEL__ */ |