From 9d2c61fcc4d2c1a94c18ecc36114535422883754 Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Wed, 7 Mar 2012 19:09:39 +0000 Subject: [PATCH] --- yaml --- r: 288327 b: refs/heads/master c: 1212268fd9816e3b8801e57b896fceaec71969ad h: refs/heads/master i: 288325: 090791c6e51df570c927c95ec66278c07a0fff2b 288323: 6df0726dbe1a4241e7cdf5b1a138e3c9cb7576b7 288319: 7f8245baeff1a328bec763e8c0deda45ffe6db0e v: v3 --- [refs] | 2 +- trunk/drivers/md/dm-flakey.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 60d8d41ddf7c..ed7950bf80fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0c535e0d6f463365c29623350dbd91642363c39b +refs/heads/master: 1212268fd9816e3b8801e57b896fceaec71969ad diff --git a/trunk/drivers/md/dm-flakey.c b/trunk/drivers/md/dm-flakey.c index 9fb18c147825..b280c433e4a0 100644 --- a/trunk/drivers/md/dm-flakey.c +++ b/trunk/drivers/md/dm-flakey.c @@ -323,7 +323,7 @@ static int flakey_end_io(struct dm_target *ti, struct bio *bio, * Corrupt successful READs while in down state. * If flags were specified, only corrupt those that match. */ - if (!error && bio_submitted_while_down && + if (fc->corrupt_bio_byte && !error && bio_submitted_while_down && (bio_data_dir(bio) == READ) && (fc->corrupt_bio_rw == READ) && all_corrupt_bio_flags_match(bio, fc)) corrupt_bio_data(bio, fc);