md: raid-1/10: fix RW bits manipulation
authorDmitry Monakhov <rjevskiy@gmail.com>
Sun, 20 Sep 2009 01:52:25 +0000 (05:52 +0400)
committerNeilBrown <neilb@suse.de>
Wed, 23 Sep 2009 08:20:15 +0000 (18:20 +1000)
commit1ef04fefe2241087d9db7e9615c3f11b516e36cf
treec050718dcdd9f61c698fe6c0247fa0f99b7c4f72
parentf28f4e272876317626cd399288b4030b627c4b91
md: raid-1/10: fix RW bits manipulation

Recently Jens has changed bio_rw_flagged() logic by following
commit 1f98a13f623e0ef666690a18c1250335fc6d7ef1. Now it returns
bool instead of int. This broke raid1/raid10 RW bits manipulation logic.
One of visible result is BUG_ON triggering due to empty barrier
here scsi_lib.c:1108 scsi_setup_fs_cmnd()

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid1.c
drivers/md/raid10.c