aboutsummaryrefslogtreecommitdiff
path: root/ubuntu/dm-raid4-5
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2010-12-08 20:29:46 +0000
committerJohn Rigby <john.rigby@linaro.org>2011-03-16 15:56:39 -0600
commit2778b1d549634f5020a7b45d879a39c81866d360 (patch)
treeb811faa545ff5685c04143bde93f1cb4066521aa /ubuntu/dm-raid4-5
parent7736ff110ff0ecdefa97841235d3c288320880e1 (diff)
UBUNTU: ubuntu: dm-raid4-5 -- follow changes to bio flags
commit 7b6d91daee5cac6402186ff224c3af39d79f4a0e Author: Christoph Hellwig <hch@lst.de> Date: Sat Aug 7 18:20:39 2010 +0200 block: unify flags for struct bio and struct request Follow the following transitions: bio_rw_flagged(bio, BIO_RW_BARRIER)) -> (bio->bi_rw & REQ_HARDBARRIER) -> (bio->bi_rw & REQ_FLUSH) Signed-off-by: Andy Whitcroft <apw@canonical.com>
Diffstat (limited to 'ubuntu/dm-raid4-5')
-rw-r--r--ubuntu/dm-raid4-5/dm-raid4-5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubuntu/dm-raid4-5/dm-raid4-5.c b/ubuntu/dm-raid4-5/dm-raid4-5.c
index 7f4565fa3de3..504aee38d037 100644
--- a/ubuntu/dm-raid4-5/dm-raid4-5.c
+++ b/ubuntu/dm-raid4-5/dm-raid4-5.c
@@ -3228,7 +3228,7 @@ static void do_ios(struct raid_set *rs, struct bio_list *ios)
* the input queue unless all work queues are empty
* and the stripe cache is inactive.
*/
- if (unlikely(bio_rw_flagged(bio, BIO_RW_BARRIER))) {
+ if (unlikely(bio->bi_rw & REQ_FLUSH)) {
/* REMOVEME: statistics. */
atomic_inc(rs->stats + S_BARRIER);
if (delay ||