diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-07-09 06:39:20 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-16 02:52:45 -0400 |
commit | 45e79a3acdcf54113b3d7b23e9e64e6541dbfeb5 (patch) | |
tree | b8e7598b26ce446577e162189e635f6b87b10a5b /include/linux/blkdev.h | |
parent | 7e75d73080d822d2bbbd5b0f7f293719dd1f9109 (diff) |
bsg: add a request_queue argument to scsi_cmd_ioctl()
bsg uses scsi_cmd_ioctl() for some SCSI/sg ioctl
commands. scsi_cmd_ioctl() gets a request queue from a gendisk
arguement. This prevents bsg being bound to SCSI devices that don't
have a gendisk (like OSD). This adds a request_queue argument to
scsi_cmd_ioctl(). The SCSI/sg ioctl commands doesn't use a gendisk so
it's safe for any SCSI devices to use scsi_cmd_ioctl().
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f6bc0d03ffad..2746632c2267 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -644,7 +644,8 @@ extern void blk_requeue_request(request_queue_t *, struct request *); | |||
644 | extern void blk_plug_device(request_queue_t *); | 644 | extern void blk_plug_device(request_queue_t *); |
645 | extern int blk_remove_plug(request_queue_t *); | 645 | extern int blk_remove_plug(request_queue_t *); |
646 | extern void blk_recount_segments(request_queue_t *, struct bio *); | 646 | extern void blk_recount_segments(request_queue_t *, struct bio *); |
647 | extern int scsi_cmd_ioctl(struct file *, struct gendisk *, unsigned int, void __user *); | 647 | extern int scsi_cmd_ioctl(struct file *, struct request_queue *, |
648 | struct gendisk *, unsigned int, void __user *); | ||
648 | extern int sg_scsi_ioctl(struct file *, struct request_queue *, | 649 | extern int sg_scsi_ioctl(struct file *, struct request_queue *, |
649 | struct gendisk *, struct scsi_ioctl_command __user *); | 650 | struct gendisk *, struct scsi_ioctl_command __user *); |
650 | 651 | ||