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:34:38 +0000 (18:34 -0400)
commit89f28328a75c39b935f3bc969a3e3f092506f0d7
treeb68d19cec090905ef263509993bc25d37c79441b
parentd214a3e0aec10f6f4c038f61ef4e8a9603de41dc
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