aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index e0a5ee36849c..a4a7c08d2f20 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1274,7 +1274,7 @@ __setup("fail_make_request=", setup_fail_make_request);
1274static int should_fail_request(struct bio *bio) 1274static int should_fail_request(struct bio *bio)
1275{ 1275{
1276 if ((bio->bi_bdev->bd_disk->flags & GENHD_FL_FAIL) || 1276 if ((bio->bi_bdev->bd_disk->flags & GENHD_FL_FAIL) ||
1277 (bio->bi_bdev->bd_part && bio->bi_bdev->bd_part->make_it_fail)) 1277 bio->bi_bdev->bd_part->make_it_fail)
1278 return should_fail(&fail_make_request, bio->bi_size); 1278 return should_fail(&fail_make_request, bio->bi_size);
1279 1279
1280 return 0; 1280 return 0;