Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-1693 obdfilter: Set bi_rw before calling bio_add_page()
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_io.c
diff --git
a/lustre/osd-ldiskfs/osd_io.c
b/lustre/osd-ldiskfs/osd_io.c
index
b7ad5a0
..
4b50e5a
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_io.c
+++ b/
lustre/osd-ldiskfs/osd_io.c
@@
-351,6
+351,7
@@
static int osd_do_bio(struct osd_device *osd, struct inode *inode,
bio->bi_bdev = inode->i_sb->s_bdev;
bio->bi_sector = sector;
+ bio->bi_rw = (iobuf->dr_rw == 0) ? READ : WRITE;
bio->bi_end_io = dio_complete_routine;
bio->bi_private = iobuf;