diff options
Diffstat (limited to 'block')
| -rw-r--r-- | block/blk-mq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index f1e63c2ece71..cee96234bf58 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
| @@ -922,6 +922,11 @@ static void blk_mq_make_request(struct request_queue *q, struct bio *bio) | |||
| 922 | 922 | ||
| 923 | blk_queue_bounce(q, &bio); | 923 | blk_queue_bounce(q, &bio); |
| 924 | 924 | ||
| 925 | if (bio_integrity_enabled(bio) && bio_integrity_prep(bio)) { | ||
| 926 | bio_endio(bio, -EIO); | ||
| 927 | return; | ||
| 928 | } | ||
| 929 | |||
| 925 | if (use_plug && blk_attempt_plug_merge(q, bio, &request_count)) | 930 | if (use_plug && blk_attempt_plug_merge(q, bio, &request_count)) |
| 926 | return; | 931 | return; |
| 927 | 932 | ||
