diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/xen-blkfront.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 7d1487760283..8bf0cb7b2565 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -380,7 +380,9 @@ static void do_blkif_request(struct request_queue *rq) | |||
380 | 380 | ||
381 | blk_start_request(req); | 381 | blk_start_request(req); |
382 | 382 | ||
383 | if (req->cmd_type != REQ_TYPE_FS) { | 383 | if ((req->cmd_type != REQ_TYPE_FS) || |
384 | ((req->cmd_flags & (REQ_FLUSH | REQ_FUA)) && | ||
385 | !info->flush_op)) { | ||
384 | __blk_end_request_all(req, -EIO); | 386 | __blk_end_request_all(req, -EIO); |
385 | continue; | 387 | continue; |
386 | } | 388 | } |