Whamcloud - gitweb
LU-1693 obdfilter: Set bi_rw before calling bio_add_page()
authorJohn L. Hammond <jhammond@tacc.utexas.edu>
Tue, 31 Jul 2012 21:51:24 +0000 (16:51 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 31 Aug 2012 22:30:00 +0000 (18:30 -0400)
commit79badd39c6584ae136b14d919eaf699ee812b666
treea2dbab4371d07f407e7f1e1c77492bd38f7f3227
parentfe206a3753143b07bddb1aba595dea0bdc3237d1
LU-1693 obdfilter: Set bi_rw before calling bio_add_page()

In filter_do_bio() and osd_do_io() set bi_rw before calling
bio_add_page() so that the correct bio direction is used in
mgrge_bvec_fn().

Signed-off-by: John L. Hammond <jhammond@tacc.utexas.edu>
Change-Id: Ife34d5d89337ea7fea41b5844fd724211b05c670
Reviewed-on: http://review.whamcloud.com/3501
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdfilter/filter_io_26.c
lustre/osd-ldiskfs/osd_io.c