aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/osd_initiator.h
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2009-05-24 13:04:43 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-10 10:00:13 -0400
commitfc2fac5b5f11e2bee3bf37215c8746236f5ea188 (patch)
tree1a76933892cd58d820558aa70a853fb590935e7d /include/scsi/osd_initiator.h
parent62f469b596dd0aadf046a69027087c18db43734e (diff)
[SCSI] libosd: Define an osd_dev wrapper to retrieve the request_queue
libosd users that need to work with bios, must sometime use the request_queue associated with the osd_dev. Make a wrapper for that, and convert all in-tree users. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/osd_initiator.h')
-rw-r--r--include/scsi/osd_initiator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h
index 8c1e3b804afd..b44dc53bd881 100644
--- a/include/scsi/osd_initiator.h
+++ b/include/scsi/osd_initiator.h
@@ -18,6 +18,7 @@
18#include "osd_types.h" 18#include "osd_types.h"
19 19
20#include <linux/blkdev.h> 20#include <linux/blkdev.h>
21#include <scsi/scsi_device.h>
21 22
22/* Note: "NI" in comments below means "Not Implemented yet" */ 23/* Note: "NI" in comments below means "Not Implemented yet" */
23 24
@@ -69,6 +70,10 @@ void osd_dev_fini(struct osd_dev *od);
69 70
70/* some hi level device operations */ 71/* some hi level device operations */
71int osd_auto_detect_ver(struct osd_dev *od, void *caps); /* GFP_KERNEL */ 72int osd_auto_detect_ver(struct osd_dev *od, void *caps); /* GFP_KERNEL */
73static inline struct request_queue *osd_request_queue(struct osd_dev *od)
74{
75 return od->scsi_device->request_queue;
76}
72 77
73/* we might want to use function vector in the future */ 78/* we might want to use function vector in the future */
74static inline void osd_dev_set_ver(struct osd_dev *od, enum osd_std_version v) 79static inline void osd_dev_set_ver(struct osd_dev *od, enum osd_std_version v)