summaryrefslogtreecommitdiff
path: root/block/blk-softirq.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-softirq.c')
-rw-r--r--block/blk-softirq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-softirq.c b/block/blk-softirq.c
index 7ab344afb16f..e660d26ca656 100644
--- a/block/blk-softirq.c
+++ b/block/blk-softirq.c
@@ -154,6 +154,8 @@ do_local:
**/
void blk_complete_request(struct request *req)
{
+ if (unlikely(blk_should_fake_timeout(req->q)))
+ return;
if (!blk_mark_rq_complete(req))
__blk_complete_request(req);
}