aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2007-07-09 06:40:35 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 02:52:46 -0400
commitd351af01b9307566135cb0f355ca65d0952c10b5 (patch)
tree6d6b964e5d6474f427907ca259e6c6ac76ed9d90 /include/linux/blkdev.h
parent45e79a3acdcf54113b3d7b23e9e64e6541dbfeb5 (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/blkdev.h')
-rw-r--r--include/linux/blkdev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 2746632c2267..24b474e05a44 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -14,6 +14,7 @@
14#include <linux/bio.h> 14#include <linux/bio.h>
15#include <linux/module.h> 15#include <linux/module.h>
16#include <linux/stringify.h> 16#include <linux/stringify.h>
17#include <linux/bsg.h>
17 18
18#include <asm/scatterlist.h> 19#include <asm/scatterlist.h>
19 20
@@ -470,6 +471,10 @@ struct request_queue
470 unsigned int bi_size; 471 unsigned int bi_size;
471 472
472 struct mutex sysfs_lock; 473 struct mutex sysfs_lock;
474
475#if defined(CONFIG_BLK_DEV_BSG)
476 struct bsg_class_device bsg_dev;
477#endif
473}; 478};
474 479
475#define QUEUE_FLAG_CLUSTER 0 /* cluster several segments into 1 */ 480#define QUEUE_FLAG_CLUSTER 0 /* cluster several segments into 1 */