diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-05-24 13:04:43 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-10 10:00:13 -0400 |
commit | fc2fac5b5f11e2bee3bf37215c8746236f5ea188 (patch) | |
tree | 1a76933892cd58d820558aa70a853fb590935e7d /fs/exofs/inode.c | |
parent | 62f469b596dd0aadf046a69027087c18db43734e (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 'fs/exofs/inode.c')
-rw-r--r-- | fs/exofs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c index f79e8e58c3a2..77d0a295eb1c 100644 --- a/fs/exofs/inode.c +++ b/fs/exofs/inode.c | |||
@@ -59,10 +59,9 @@ static void _pcol_init(struct page_collect *pcol, unsigned expected_pages, | |||
59 | struct inode *inode) | 59 | struct inode *inode) |
60 | { | 60 | { |
61 | struct exofs_sb_info *sbi = inode->i_sb->s_fs_info; | 61 | struct exofs_sb_info *sbi = inode->i_sb->s_fs_info; |
62 | struct request_queue *req_q = sbi->s_dev->scsi_device->request_queue; | ||
63 | 62 | ||
64 | pcol->sbi = sbi; | 63 | pcol->sbi = sbi; |
65 | pcol->req_q = req_q; | 64 | pcol->req_q = osd_request_queue(sbi->s_dev); |
66 | pcol->inode = inode; | 65 | pcol->inode = inode; |
67 | pcol->expected_pages = expected_pages; | 66 | pcol->expected_pages = expected_pages; |
68 | 67 | ||