aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/xen-blkback/blkback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index 53c81de6f886..a1ee2659d2bc 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -707,7 +707,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif,
707 * the hypercall to unmap the grants - that is all done in 707 * the hypercall to unmap the grants - that is all done in
708 * xen_blkbk_unmap. 708 * xen_blkbk_unmap.
709 */ 709 */
710 if (operation == REQ_DISCARD && xen_blkbk_map(req, pending_req, seg)) 710 if (operation != REQ_DISCARD && xen_blkbk_map(req, pending_req, seg))
711 goto fail_flush; 711 goto fail_flush;
712 712
713 /* 713 /*